forked from endelwar/GestPayWS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (40 loc) · 1.4 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
49
50
51
env:
global:
- CC_TEST_REPORTER_ID=deca2972dcbbc58c9295fca4fad6ee8fb9e11f9db1ed90246664d9cf3afb06de
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
before_install:
- pip install --user codecov
before_script:
- composer self-update
- composer install
- mkdir -p build/logs
- if [ $(phpenv version-name) = "7.1" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
- if [ $(phpenv version-name) = "7.1" ]; then chmod +x ./cc-test-reporter; fi
- if [ $(phpenv version-name) = "7.1" ]; then ./cc-test-reporter before-build; fi
script:
- php vendor/bin/phpunit -c phpunit.xml.dist
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- cp build/logs/clover.xml clover.xml
- if [ $(phpenv version-name) = "7.1" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
after_success:
- codecov
- travis_retry php vendor/bin/php-coveralls -v
git:
depth: 5