-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
34 lines (28 loc) · 884 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
sudo: false
language: php
env:
global:
- APPLICATION_ENV=test
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
env:
- EXECUTE_TEST_COVERALLS=true
- EXECUTE_CS_CHECK=true
- php: 7
- php: nightly
- php: hhvm
before_install:
- mkdir -p build/logs
- composer self-update
install:
- travis_retry composer install --no-interaction --ignore-platform-reqs
script:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then vendor/bin/phpunit ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then vendor/bin/phpunit --coverage-clover=./build/logs/clover.xml; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./bin/php-cs-fix.sh src true ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./bin/php-cs-fix.sh tests true ; fi
after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi