forked from Alorel/dropbox-v2-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (40 loc) · 1.33 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
43
44
45
46
47
48
language: php
dist: trusty
sudo: false
cache:
directories:
- "$HOME/.composer"
- vendor
env:
# matrix:
# - SUITE=FILE_OPS
# - SUITE=SHORT
php:
- 7.1
- 7.0
- 5.6
- hhvm
before_install:
- echo $TRAVIS_PHP_VERSION
before_script:
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* && "$TRAVIS_PHP_VERSION" != *"7.1"*
]]; then phpenv config-rm xdebug.ini; else mkdir -p ~/.phpenv/versions/hhvm/etc;
fi;'
- echo "date.timezone = Europe/London" >> .date-timezone.ini && phpenv config-add
.date-timezone.ini
- composer install
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* && "$TRAVIS_PHP_VERSION" != *"7.1"*
]]; then echo "zend_extension = xdebug.so" >> .xdebug.ini && phpenv config-add .xdebug.ini;
fi;'
script:
#- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* && "$TRAVIS_PHP_VERSION" != *"7.1"*
# ]]; then vendor/bin/phpunit --coverage-clover coverage.xml --testsuite $SUITE; else
# vendor/bin/phpunit --testsuite $SUITE; fi;'
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* && "$TRAVIS_PHP_VERSION" != *"7.1"*
]]; then vendor/bin/phpunit --coverage-clover coverage.xml; else
vendor/bin/phpunit; fi;'
after_success:
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* && "$TRAVIS_PHP_VERSION" != *"7.1"*
]]; then chmod 777 coverage.xml && bash <(curl -s https://codecov.io/bash); fi;'
matrix:
fast_finish: false