-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (43 loc) · 1.32 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
language: php
sudo: false
dist: trusty
git:
depth: 1
cache:
directories:
- $HOME/.composer/cache
env:
global:
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-ansi --no-interaction --no-progress --no-suggest"
- COMPOSER_FLAGS=""
before_install:
- phpenv config-rm xdebug.ini || return 0
- composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
jobs:
include:
- &STANDARD_TEST_JOB
stage: Test
php: 7.1
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
script:
- vendor/bin/phpunit || travis_terminate 1
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.2
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.3
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-clover build/logs/clover.xml || travis_terminate 1
- php vendor/bin/php-coveralls -v
-
<<: *STANDARD_TEST_JOB
stage: Test
php: nightly
env: COMPOSER_FLAGS="--ignore-platform-reqs"
allow_failures:
- php: nightly