-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
29 lines (25 loc) · 1.05 KB
/
.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
language: php
php:
# - "7.0"
# - "7.1"
- "7.2"
- "7.3"
before_script:
- composer install --dev --no-interaction
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- wget https://github.com/infection/infection/releases/download/0.14.1/infection.phar
- wget https://github.com/infection/infection/releases/download/0.14.1/infection.phar.asc
- gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 493B4AA0
- gpg --with-fingerprint --verify infection.phar.asc infection.phar
- chmod +x infection.phar
script:
- mkdir -p build/logs
- vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover build/logs/clover.xml ./tests
- ./infection.phar --min-msi=48 --threads=4
after_script:
- php vendor/bin/coveralls
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT