forked from danielbachhuber/composer-lock-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 806 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
33
34
language: php
branches:
# Only test the master branch and SemVer tags.
only:
- master
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
matrix:
include:
- php: 7.1
env: dependencies=highest
- php: 7.0.11
- php: 5.6
- php: 5.5
env: dependencies=lowest
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_script:
# Do highest/lowest testing by installing dependencies per the 'dependencies' setting
- if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-dist --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
script:
- composer -n test
after_success:
- travis_retry php vendor/bin/coveralls -v