forked from knpuniversity/oauth2-client-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (25 loc) · 779 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.1
- 7.2
- 7.3
matrix:
include:
- php: 7.3
env: DEPENDENCIES=dev LINT=1
- php: 7.1
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
before_install:
- phpenv config-rm xdebug.ini || true
- composer self-update
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
install: composer update --prefer-dist $COMPOSER_FLAGS
# Fail CI if repo is in dirty state after bin/update_readme
before_script: ./bin/update_readme && git diff --exit-code README.md
script:
- ./vendor/bin/simple-phpunit
- if [ "$LINT" = 1 ]; then ./vendor/bin/phpstan analyse; fi;