forked from cross-solution/YAWIK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (34 loc) · 1.16 KB
/
.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
38
39
40
41
42
language: php
php:
- "5.6"
- "5.5"
services:
- mongodb
env:
- PECLMONGO=mongo-1.6.10
before_install:
- sudo apt-get update > /dev/null
- "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin"
install:
# install php packages required for running YAWIK phpunit tests
- sudo apt-get install -y --force-yes php5-intl php5-curl php5-xsl
# add composer's global bin directory to the path
- export PATH="$HOME/.composer/vendor/bin:$PATH"
before_script:
- sh -c "wget http://pecl.php.net/get/$PECLMONGO.tgz"
- sh -c "tar xfz $PECLMONGO.tgz"
- sh -c "cd $PECLMONGO && phpize && ./configure && make && sudo make install"
- phpenv config-add .travis/phpenv.ini
- ./install.sh -b .travis/build.properties.travis
- ./composer.phar self-update
- ./composer.phar install
script:
- ln -s ../test/build/logs build
- cd test
- phpunit --configuration $TRAVIS_BUILD_DIR/test/phpunit.xml.dist
after_script:
- cd $TRAVIS_BUILD_DIR
- ls -l test/build/logs
- php vendor/bin/coveralls -vvv
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover test/build/logs/clover.serialized