1
1
language : php
2
- php :
3
- - 7.0
4
- - 7.1
5
- - 7.2
6
- - nightly
2
+ sudo : required
3
+
4
+ matrix :
5
+ include :
6
+ - php : 7.0
7
+ - php : 7.1
8
+ - php : 7.2
9
+ env : QUALITY=yes
10
+ - php : nightly
11
+ - os : osx
12
+ osx_image : xcode7.2
13
+ allow_failures :
14
+ - os : osx
15
+
16
+ notifications :
17
+ webhooks : https://www.travisbuddy.com/?insertMode=update
7
18
8
19
before_script :
9
20
- mkdir -vp ~/.config/jaggedsoft/
@@ -14,6 +25,8 @@ before_script:
14
25
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/php-binance-api-test.php -O php-binance-api-test.php
15
26
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/phpunit.xml -O phpunit.xml
16
27
- travis_retry wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
28
+ - travis_retry wget https://github.com/codacy/php-codacy-coverage/releases/download/1.4.2/codacy-coverage.phar -O codacy.phar
29
+ - travis_retry wget https://github.com/phpfmt-next/fmt/raw/master/bin/fmt.phar -O fmt.phar
17
30
- travis_retry wget https://codecov.io/bash -O codecov.sh
18
31
- COMPOSER=composer-test.json composer -vvv install --no-interaction --no-suggest
19
32
- chmod -v +x codecov.sh
@@ -22,11 +35,14 @@ before_script:
22
35
23
36
script :
24
37
- ./vendor/bin/phpunit --verbose --debug --coverage-clover build/logs/clover.xml --bootstrap vendor/autoload.php php-binance-api-test
38
+ - php fmt.phar -v --psr2 --indent_with_space=4 -o=php-binance-api.php.fmt php-binance-api.php
39
+ - diff php-binance-api.php.fmt php-binance-api.php
25
40
26
41
after_success :
27
- - travis_retry php coveralls.phar -v
28
- - travis_retry bash -x ./codecov.sh -f "!$TRAVIS_BUILD_DIR/php-binance-api-test.php"
29
- - travis_retry bash -x ./docs.sh
42
+ - if [[ $QUALITY == "yes" ]]; then travis_retry php coveralls.phar -v; fi
43
+ - if [[ $QUALITY == "yes" ]]; then travis_retry php codacy.phar clover -vv build/logs/clover.xml; fi
44
+ - if [[ $QUALITY == "yes" ]]; then travis_retry bash -x ./codecov.sh -f "!$TRAVIS_BUILD_DIR/php-binance-api-test.php"; fi
45
+ - if [[ $QUALITY == "yes" ]]; then travis_retry bash -x ./docs.sh; fi
30
46
31
47
branches :
32
48
only : master
0 commit comments