forked from FoolCode/SphinxQL-Query-Builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 956 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
env:
- DRIVER=mysqli SPHINXSEARCH_BUILD=rel22
- DRIVER=mysqli SPHINXSEARCH_BUILD=beta
- DRIVER=pdo SPHINXSEARCH_BUILD=rel22
- DRIVER=pdo SPHINXSEARCH_BUILD=beta
matrix:
fast_finish: true
before_install:
- mkdir $HOME/sphinx
- pushd $HOME/sphinx
- wget --quiet http://ppa.launchpad.net/builds/sphinxsearch-${SPHINXSEARCH_BUILD}/ubuntu/dists/`lsb_release -cs`/main/binary-amd64/Packages.gz
- gzip -d Packages.gz
- SPHINX_DEB=`grep -m1 Filename Packages | cut -f2 -d' '`
- wget --quiet -O sphinxsearch.deb http://ppa.launchpad.net/builds/sphinxsearch-${SPHINXSEARCH_BUILD}/ubuntu/${SPHINX_DEB}
- dpkg -x sphinxsearch.deb .
- popd
before_script:
- composer dump-autoload
- cd tests
- gcc -shared -o data/test_udf.so test_udf.c
- $HOME/sphinx/usr/bin/searchd -c sphinx.conf
script: phpunit --configuration travis/$DRIVER.phpunit.xml --coverage-text