-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
38 lines (33 loc) · 875 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
env:
global:
- COVERAGE=false
- XDEBUG_MODE=coverage
matrix:
include:
- php: 7.1
env: CARBON_V=2
- php: 7.2
env: CARBON_V=2
- php: 7.3
env: CARBON_V=2
- php: 7.4
env: CARBON_V=2
- php: 8.0
env:
- CARBON_V=2
- COVERAGE=true
# Commands to be run before your environment runs.
before_script:
- composer self-update
- composer install --no-interaction --dev
# Commands you want to run that will verify your build.
script:
- ./tests/carbon-${CARBON_V}.sh
- if [[ $COVERAGE = 'true' ]]; then ./vendor/bin/phpunit --coverage-clover=build/logs/clover.xml; fi
after_success:
- if [[ $COVERAGE = 'true' ]]; then travis_retry php vendor/bin/php-coveralls; fi
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache/files