-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
35 lines (29 loc) · 925 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
language: php
sudo: false
## Cache composer bits
cache:
directories:
- vendor
- $HOME/.composer/cache
## PHP versions we test against
php:
- 7.1
- 7.2
- nightly
## Update composer and run the appropriate composer command
install:
# Install composer packages, will also trigger dump-autoload
- composer install --no-interaction
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
# Create a storage folder for Coverage report
before_script:
- mkdir -p build/logs
# Testing the app (see phpunit.xml), generating Code Coverage report
script:
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
# Submit generated coverage report to Coveralls servers, see .coveralls.yml
after_success:
- travis_retry php coveralls.phar -v