forked from cocur/slugify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.36 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
dist: xenial
language: php
matrix:
include:
- php: 7.0
- php: 7.0
env: COMPOSER_FLAGS='--prefer-lowest'
- php: 7.1
- php: 7.1
env: COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
- php: 7.2
env: COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
- php: 7.3
env: COMPOSER_FLAGS='--prefer-lowest'
- php: 7.4
env: ANALYSIS=1
- php: 7.4
env: COMPOSER_FLAGS='--prefer-lowest'
- php: nightly
allow_failures:
- php: nightly
fast_finish: true
cache:
directories:
- $HOME/.composer
before_install:
- composer global outdated --strict hirak/prestissimo || composer global require hirak/prestissimo
install:
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update $COMPOSER_FLAGS --no-suggest
- if [ $ANALYSIS == 1 ]; then travis_retry composer update --working-dir=./dev-tools --no-suggest; fi
script:
- vendor/bin/phpunit --verbose --coverage-clover=coverage.clover
- if [ $ANALYSIS == 1 ]; then ./dev-tools/analyse.sh || travis_terminate 1; fi
after_script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/fc8ccb3e96abeb0fdc95
on_success: change
on_failure: always
on_start: never