-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
.travis.yml
49 lines (49 loc) · 1.47 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: php
php:
- 7.2
- 7.3
- 7.4
env:
- ILLUMINATE_DATABASE=5.6
- ILLUMINATE_DATABASE=~5.0
- ILLUMINATE_DATABASE=~6.0
- ILLUMINATE_DATABASE=~7.0
- ILLUMINATE_DATABASE=~8.0
jobs:
include:
- php: 7.1
env: ILLUMINATE_DATABASE=5.6
- php: 7.1
env: ILLUMINATE_DATABASE=~5.0
- php: 8.0
env: ILLUMINATE_DATABASE=~9.0
- php: 8.1
env: ILLUMINATE_DATABASE=~9.0
- php: 8.1
env: ILLUMINATE_DATABASE=~10.0
exclude:
- php: 7.2
env: ILLUMINATE_DATABASE=~8.0
allow_failures:
- php: 7.3
env: ILLUMINATE_DATABASE=5.6
- php: 7.4
env: ILLUMINATE_DATABASE=5.6
git:
depth: 3
submodules: false
dist: xenial
os: linux
install:
- composer config --no-plugins allow-plugins.kylekatarnls/update-helper true
- composer require "illuminate/database:$ILLUMINATE_DATABASE" --no-interaction --no-update
- composer update --no-interaction
before_script:
- wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- chmod +x cc-test-reporter
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter before-build; fi
script:
- ./vendor/bin/phpunit --version
- ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
after_script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi