-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
79 lines (68 loc) · 1.72 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Travis CI configuration file for WordPoints.
language: php
php:
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
env:
- TRAVISCI_RUN=codesniff
- TRAVISCI_RUN=phpunit WP_VERSION=develop
- TRAVISCI_RUN=phpunit WP_VERSION=5.2
dist: trusty
# See https://github.com/WordPoints/wordpoints/issues/757
group: deprecated-2017Q4
sudo: true
addons:
apt:
packages:
# Needed for `xmllint`.
- libxml2-utils
matrix:
include:
# Only run nightly against trunk.
- php: nightly
env: TRAVISCI_RUN=phpunit WP_VERSION=develop
exclude:
# The codesniff pass only needs to be run once.
- php: 7.2
env: TRAVISCI_RUN=codesniff
- php: 7.1
env: TRAVISCI_RUN=codesniff
- php: 7.0
env: TRAVISCI_RUN=codesniff
- php: 5.6
env: TRAVISCI_RUN=codesniff
allow_failures:
- php: nightly
fast_finish: true
before_script:
- export WORDPOINTS_PROJECT_TYPE=wordpoints
- export DEV_LIB_PATH=dev-lib
- if [ -e .wordpoints-dev-lib-config.sh ]; then source .wordpoints-dev-lib-config.sh; fi
- source $DEV_LIB_PATH/travis/before_script.sh
script:
- codesniff-php-syntax
- codesniff-php-autoloaders
- codesniff-phpcs
- codesniff-strings
- codesniff-dittography
- codesniff-jshint
- codesniff-l10n
- codesniff-xmllint
- codesniff-bash
- codesniff-symlinks
- phpunit-basic
- phpunit-ms
- phpunit-ms-network
- phpunit-uninstall
- phpunit-ms-uninstall
- phpunit-ms-network-uninstall
- phpunit-ajax
- phpunit-ms-ajax
- phpunit-ms-network-ajax
- wpcept-run
- WORDPOINTS_NETWORK_ACTIVE=1 WP_MULTISITE=1 wpcept-basic acceptance network
after_script:
- source $DEV_LIB_PATH/travis/after_script.sh