-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (39 loc) · 1.44 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
50
51
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- setup=basic
- coverage=false
before_install:
- composer install
- composer global require hirak/prestissimo --update-no-dev
- if [[ $coverage = 'false' ]]; then phpenv config-rm xdebug.ini || true; fi
- 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
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-lowest; fi
- composer dump-autoload -o
script:
- if [[ $coverage = 'true' ]]; then composer test-cover; else composer test; fi
after_script:
- if [[ $coverage = 'true' ]]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
after_success:
- if [[ $coverage = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
matrix:
include:
# - php: 7.4
# env: setup=lowest
- php: 7.4
env: setup=lowest
- php: 7.4
env: setup=stable
- php: 8.0
env: setup=stable
- php: nightly
allow_failures:
- php: nightly