Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit c21595b

Browse files
Update Travis matrix
1 parent 7302c70 commit c21595b

1 file changed

Lines changed: 27 additions & 38 deletions

File tree

.travis.yml

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,55 +5,44 @@ sudo: false
55
cache:
66
directories:
77
- $HOME/.composer/cache
8+
9+
php:
10+
- 7.1
11+
- 7.2
12+
- nightly
13+
14+
env:
15+
- DEPENDENCIES=no
16+
- DEPENDENCIES=beta
17+
- DEPENDENCIES=low
18+
- SYMFONY_VERSION=2.7.*
19+
- SYMFONY_VERSION=2.8.*
20+
- SYMFONY_VERSION=3.0.*
21+
- SYMFONY_VERSION=3.1.*
22+
- SYMFONY_VERSION=3.2.*
23+
- SYMFONY_VERSION=3.3.*
24+
- SYMFONY_VERSION=3.4.*
25+
- SYMFONY_VERSION=4.0.*
826

927
matrix:
10-
include:
11-
- php: 7.1
12-
env: SYMFONY_VERSION=2.7.*
13-
- php: 7.1
14-
env: SYMFONY_VERSION=3.3.*
15-
- php: 7.1
16-
env: SYMFONY_VERSION=3.4.*
17-
- php: 7.1
18-
env: SYMFONY_VERSION=4.0.*
19-
- php: 7.1
20-
env: DEPENDENCIES=beta
21-
- php: 7.2
22-
env: SYMFONY_VERSION=2.7.*
23-
- php: 7.2
24-
env: SYMFONY_VERSION=3.3.*
25-
- php: 7.2
26-
env: SYMFONY_VERSION=3.4.*
27-
- php: 7.2
28-
env: SYMFONY_VERSION=4.0.*
29-
- php: 7.2
30-
env: DEPENDENCIES=beta
31-
- php: nightly
32-
env: SYMFONY_VERSION=2.7.*
33-
- php: nightly
34-
env: SYMFONY_VERSION=3.3.*
35-
- php: nightly
36-
env: SYMFONY_VERSION=3.4.*
37-
- php: nightly
38-
env: SYMFONY_VERSION=4.0.*
39-
- php: nightly
40-
env: DEPENDENCIES=beta
4128
allow_failures:
4229
- php: nightly
4330
- env: DEPENDENCIES=beta
44-
45-
env:
46-
global:
47-
- deps=no
31+
- env: DEPENDENCIES=low
4832

4933
before_install:
5034
- composer self-update
5135
# Set composer minimum-stability configuration filter to beta versions
5236
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;
37+
# Disable xdebug, there is no use of it being enabled
38+
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
39+
# Prevent Travis throwing an out of memory error
40+
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
41+
# Test if we have a token for github as the project may hit the 60 rph limit
42+
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
5343

5444
install:
55-
- if [ "$deps" = "no" ]; then composer update; fi;
56-
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;
45+
- if [ "$DEPENDENCIES" = "low" ]; then composer --prefer-lowest --prefer-stable update; else composer update; fi;
5746

5847
script:
59-
- vendor/jakub-onderka/php-parallel-lint/parallel-lint --exclude vendor .
48+
- composer validate-files

0 commit comments

Comments
 (0)