forked from yadenis/DCO-Comment-Attachment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 926 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
35
36
37
38
39
40
41
42
43
44
45
46
language: php
branches:
only:
- master
- dev
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: 7.4
env: WP_VERSION=latest
- php: 7.3
env: WP_VERSION=latest
- php: 7.3
env: WP_TRAVISCI=phpcs
- php: 7.2
env: WP_VERSION=latest
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=4.6
before_install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# Unless we need XDebug, disable it for improved performance.
- phpenv config-rm xdebug.ini || return 0
install:
# Install our Composer dependencies
- composer install --prefer-dist --no-interaction
script:
- |
# If we've set the $WP_TRAVISCI variable to run PHPCS, do that instead
if [[ "$WP_TRAVISCI" == "phpcs" ]]; then
./vendor/bin/phpcs
fi