Skip to content

Commit 0fab6ac

Browse files
committed
Travis: rearrange, and fix warnings and infos
Tested at https://config.travis-ci.com/explore
1 parent 478f56c commit 0fab6ac

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

.travis.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,17 @@
1+
language: php
2+
os: linux
13
dist: xenial
24

3-
cache:
4-
directories:
5-
- $HOME/.cache/composer/files
6-
7-
language:
8-
- php
9-
10-
before_install:
11-
# Speed up build time by disabling Xdebug.
12-
# https://johnblackbourn.com/reducing-travis-ci-build-times-for-wordpress-projects/
13-
# https://twitter.com/kelunik/status/954242454676475904
14-
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
15-
16-
install:
17-
- composer require squizlabs/php_codesniffer:"$PHPCS_BRANCH" --update-no-dev --no-suggest --no-scripts
18-
- composer install --dev --no-suggest
19-
20-
script:
21-
# Run the unit tests.
22-
- ./bin/unit-tests
23-
24-
# Run ruleset tests.
25-
- ./bin/ruleset-tests
26-
275
env:
286
# `master` is now 3.x.
297
- PHPCS_BRANCH="dev-master"
308
# Lowest supported release in the 3.x series with which VIPCS is compatible.
319
- PHPCS_BRANCH="3.3.1"
3210

11+
cache:
12+
directories:
13+
- $HOME/.cache/composer/files
14+
3315
php:
3416
- 5.6
3517
- 7.0
@@ -85,3 +67,19 @@ jobs:
8567
- ./bin/phpcs
8668

8769

70+
before_install:
71+
# Speed up build time by disabling Xdebug.
72+
# https://johnblackbourn.com/reducing-travis-ci-build-times-for-wordpress-projects/
73+
# https://twitter.com/kelunik/status/954242454676475904
74+
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
75+
76+
install:
77+
- composer require squizlabs/php_codesniffer:"$PHPCS_BRANCH" --update-no-dev --no-suggest --no-scripts
78+
- composer install --dev --no-suggest
79+
80+
script:
81+
# Run the unit tests.
82+
- ./bin/unit-tests
83+
84+
# Run ruleset tests.
85+
- ./bin/ruleset-tests

0 commit comments

Comments
 (0)