forked from Laralabs/get-address-io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (29 loc) · 899 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
language: php
php:
- 7.3
- 7.4
env:
global:
- CC_TEST_REPORTER_ID=$CODECLIMATE_REPO_TOKEN
matrix:
- LARAVEL_VERSION=5.8.*
- LARAVEL_VERSION=6.0.*
- LARAVEL_VERSION=7.0.*
- LARAVEL_VERSION=8.0.*
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
sudo: false
install:
- if [ "$LARAVEL_VERSION" != "" ]; then composer require --dev "laravel/framework:${LARAVEL_VERSION}" --no-update; fi;
- travis_retry composer install --no-interaction --prefer-source --no-suggest
before_script:
- 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
script:
- $TRAVIS_BUILD_DIR/vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT;