-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (47 loc) · 1.1 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
52
53
54
55
56
57
58
59
60
language: php
php:
- 7.4
- 8.0
services:
- mysql
before_script:
# Additional PHP config
- phpenv config-add ./tests/travis.php.ini
before_install:
# Turn off XDebug
- phpenv config-rm xdebug.ini || return 0
install:
# Install dependencies
- travis_retry composer install --no-progress --prefer-dist
script:
# Tests
- make tests
after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
jobs:
include:
- stage: Quality Assurance
php: 7.4
script:
- make qa
- stage: Test Coverage
if: branch = master AND type = push
php: 7.4
script:
- make coverage
after_script:
- composer require php-coveralls/php-coveralls ^2.1.0
- vendor/bin/php-coveralls --verbose --config tests/.coveralls.yml
- stage: Outdated Dependencies
if: branch = master AND type = cron
php: 7.4
script:
- composer outdated --direct
allow_failures:
- stage: Test Coverage
- php: 8.0
sudo: false
cache:
directories:
- $HOME/.composer/cache