-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (28 loc) · 881 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
language: php
php:
- 7.1
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
- vendor
services:
- mysql
- redis-server
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
install:
- travis_retry composer self-update
- composer config -g github-oauth.github.com dcb6b0049723eb6f56039b2d6389ac76eb29e352
- travis_retry composer install --prefer-dist --no-interaction
# - travis_retry sudo apt-get install redis-server
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
script:
- "./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover"
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover