forked from mvdbos/php-spider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 939 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
## Run on container environment
sudo: false
cache:
directories:
- $HOME/.composer/cache
- vendor
language: php
php:
- 7.0
- 5.6
matrix:
fast_finish: true
# We only build pushes to master and pull requests
branches:
only:
- master
before_install:
# Disable XDebug speeds up composer
- phpenv config-rm xdebug.ini || return 0
- composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN
install:
- travis_retry composer install --no-interaction --prefer-dist --ignore-platform-reqs
# Re-enable XDebug for phpunit code coverage
- echo "zend_extension = xdebug.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mkdir -p build/logs
script:
- vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
after_success:
- travis_retry wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
- travis_retry php coveralls.phar -v