forked from burzum/cakephp-file-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (30 loc) · 814 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
35
36
37
38
language: php
sudo: false
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
global:
- DEFAULT=1
matrix:
allow_failures:
- php: nightly
fast_finish: true
include:
- php: 7.1
env:
- COVERALLS=1
before_script:
- composer self-update
- rm composer.lock
- composer install --prefer-dist --no-interaction
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev 'satooshi/php-coveralls:^2.0'; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
script:
- sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/php-coveralls -v; fi"
- sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit --stderr; fi"
notifications:
email: false