forked from bavix/laravel-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1001 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
language: php
php:
- '7.2'
- '7.3'
- '7.4snapshot'
- 'nightly'
services:
- memcached
matrix:
allow_failures:
- php: '7.4snapshot'
- php: 'nightly'
before_script:
- pecl install pcov
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- bash <(curl -s https://raw.githubusercontent.com/php-cache/cache/master/build/php/7.2/Memcached.sh)
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- if [ $(phpenv version-name) = "7.3" ]; then ./cc-test-reporter before-build; fi
- composer install
script:
- ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/phpunit.junit.xml
- ./vendor/bin/infection --coverage=build --min-msi=60 -j$(nproc)
after_success:
- if [ $(phpenv version-name) = "7.3" ]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT; fi
- bash <(curl -s https://codecov.io/bash)