forked from fxpio/composer-asset-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (28 loc) · 953 Bytes
/
.travis.yml
File metadata and controls
37 lines (28 loc) · 953 Bytes
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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 5.5
- php: 5.6
- php: 7.0
- php: hhvm
- php: nightly
allow_failures:
- php: nightly
fast_finish: true
before_script:
- composer self-update
- composer install --prefer-source
- composer require --dev --no-update phpunit/phpunit:@stable phpunit/php-code-coverage:@stable satooshi/php-coveralls:@dev
- composer update --prefer-source phpunit/php-code-coverage satooshi/php-coveralls composer/composer
- mkdir -p ./build/logs
script:
- ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
after_script:
- 'echo ''coverage_clover: build/logs/clover.xml'' >> ./.coveralls.yml'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ./vendor/bin/coveralls -v; fi;'
notifications:
email: false