Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 889 Bytes
#Trying to go to the faster container infrastructure of github
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: hhvm
include:
- php: 5.5
env: deps=low
env:
global:
- deps=no
install:
- if [ "$deps" = "no" ]; then composer $flag install; fi;
- if [ "$deps" = "low" ]; then composer $flag --prefer-lowest --prefer-stable update; fi;
script:
- mkdir -p build/logs
- ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
before_install:
- composer self-update
- composer config --quiet github-oauth.github.com $GITHUB_TOKEN
- if [[ ! $GITHUB_TOKEN ]]; then echo "no github token"; fi
- if [[ ! $GITHUB_TOKEN ]]; then flag=--prefer-source; fi
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.xml