forked from ramsey/uuid-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (61 loc) · 1.68 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
61
62
63
64
65
66
67
68
69
70
71
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
sudo: false
matrix:
include:
- php: 5.4
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.5
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 7.0
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 7.1
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 7.2
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: nightly
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.4
env: COMPOSER_FLAGS='--prefer-latest'
- php: 5.5
env: COMPOSER_FLAGS='--prefer-latest'
- php: 5.6
env: COMPOSER_FLAGS='--prefer-latest'
- php: 7.0
env: COMPOSER_FLAGS='--prefer-latest'
- php: 7.1
env: COMPOSER_FLAGS='--prefer-latest'
- php: 7.2
env: COMPOSER_FLAGS='--prefer-latest'
- php: nightly
env: COMPOSER_FLAGS='--prefer-latest'
fast_finish: true
allow_failures:
- php: nightly
before_install:
- travis_retry composer self-update
install:
- |
if [[ "$COMPOSER_FLAGS" == "--prefer-latest" ]]; then
composer config minimum-stability dev
composer config prefer-stable false
export COMPOSER_FLAGS=""
fi;
- travis_retry composer update $COMPOSER_FLAGS --prefer-source
before_script:
- mkdir -p build/logs
script:
- ./vendor/bin/parallel-lint src tests
- ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src tests --standard=psr2 -sp
after_script:
- travis_retry php vendor/bin/coveralls