Skip to content

Commit eeedea0

Browse files
committed
Travis: change from "trusty" to "xenial"
As the "trusty" environment is no longer officially supported by Travis, they decided in their wisdom to silently stop updating the PHP "nightly" image, which makes it next to useless as the last image apparently is from January.... This updates the Travis config to: * Remove the global `dist` key, which let's the build use the system default, which at this time is `xenial`. * Sets the distro for low PHP versions explicitly to `trusty`. * Makes the expected OS explicit (linux). * Remove redundant `stage` keys.
1 parent 8072d01 commit eeedea0

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

.travis.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
dist: trusty
2-
1+
os: linux
32
language: php
43

54
## Cache composer and apt downloads.
@@ -11,10 +10,8 @@ cache:
1110
# Cache directory for more recent Composer versions.
1211
- $HOME/.cache/composer/files
1312

14-
# Note: PHP 7.3, 7.4 and nightly are added via "jobs".
13+
# Note: PHP 5.4, 5.5, 7.3, 7.4 and nightly are added via "jobs".
1514
php:
16-
- 5.4
17-
- 5.5
1815
- 5.6
1916
- 7.0
2017
- 7.1
@@ -70,15 +67,14 @@ jobs:
7067
- stage: quicktest
7168
php: 7.4
7269
env: PHPCS_VERSION="dev-master" LINT=1
73-
- stage: quicktest
74-
php: 7.2
70+
- php: 7.2
7571
env: PHPCS_VERSION="3.1.0"
7672

77-
- stage: quicktest
78-
php: 5.4
73+
- php: 5.4
74+
dist: trusty
7975
env: PHPCS_VERSION="dev-master" LINT=1
80-
- stage: quicktest
81-
php: 5.4
76+
- php: 5.4
77+
dist: trusty
8278
env: PHPCS_VERSION="3.1.0"
8379

8480
#### TEST STAGE ####
@@ -95,9 +91,22 @@ jobs:
9591
- php: 7.4
9692
env: PHPCS_VERSION="3.5.0"
9793

94+
# PHP 5.4/5.5 need trusty.
95+
- php: 5.5
96+
dist: trusty
97+
env: PHPCS_VERSION="dev-master" LINT=1
98+
- php: 5.5
99+
dist: trusty
100+
env: PHPCS_VERSION="3.1.0"
101+
- php: 5.4
102+
dist: trusty
103+
env: PHPCS_VERSION="dev-master" LINT=1
104+
- php: 5.4
105+
dist: trusty
106+
env: PHPCS_VERSION="3.1.0"
107+
98108
# Builds against unstable versions which are allowed to fail for now.
99-
- stage: test
100-
php: 7.4
109+
- php: 7.4
101110
env: PHPCS_VERSION="4.0.x-dev"
102111
- php: "nightly"
103112
env: PHPCS_VERSION="dev-master" LINT=1

0 commit comments

Comments
 (0)