forked from Automattic/vip-go-mu-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (36 loc) · 1.54 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
language: php
sudo: false # Use modern Travis builds – http://docs.travis-ci.com/user/migrating-from-legacy/
git:
submodules: false
php:
- 7.2
- 7.3
env:
matrix:
- WP_VERSION=latest WP_MULTISITE=0 DEPLOY_BRANCH=master RUN_PHPCS=1
- WP_VERSION=latest WP_MULTISITE=1 DEPLOY_BRANCH=master RUN_PHPCS=0
addons:
apt:
packages:
- graphviz
before_install:
- ./ci/prepare.sh
install: true
before_script:
- composer install -n
- vendor/bin/phpunit --version
script:
# Linting and unit tests
- make lint
- if [[ "$RUN_PHPCS" == "1" ]]; then echo "Skipping make sniff since it's broken right now"; fi
- make phpunit
notifications:
email: false
slack:
secure: "DFGhxNw5Ai4/P3Ur55RTgOIowejSzIbH9YFYatULUZfIRdXk8Zuo75n+xyysciqdGD4hV1jVZCecb37LRZtUiKPwsr7tRPsw5e7H7sb0M1FG1eVrupTZS+HwJ3/Dwg8B866JCGVOhniaaW4rDXLYn2n96H+2N60Su37VaYoHQPQfwSZuRp5QSRsHz6gAlIScYG4emOmREhmTw/x6K5GcT0k3Sv18uIWfrO9WTkCaUsVraT0f0LYkPGJNL91E8KYKrcX3/vGEFF8nL/JUyM3KexB/6OCG+0IxGcFlZ0FJAu2mTaEk6Y6S53u3NpoCjZTSPOA+ClHEfV52HrimpAsKBhY9VmuYkdlaJOLeRuxKvBma5VTOQf9zlWxcKeOf6ySWsxYfD8nFlwdIbcqOBTU4QeKQXUAOmmk8E/nbe+NBl02VI0A9n4P+QOMoedJjF9Ds+T98d4POAhzbvVH3igdB++w7/X/86JsJqVUnQXk7LE/qWiYDcPmIdFxKB4gUfQBS4e7KOqsCpN35b4Nrjex12Jk4sPYk9eQLBP1NxCn2A+y4Wm0WHN6MOoRrVC4CXHwz4r+hyVcGFthabG3uH+s7/EyG5nUESbaoYpwJ+5+yvYi/HyC7IcwPY6Cp2CnMfFMm3ROrrGw+MaVQxbkrpFen2UZe5wjkOJY2NmNTjaSQzvg="
on_success: change
on_failure: change
after_success:
# Push the aggregated code, including submodules, to the public repo
- ./ci/deploy.sh
- ./ci/generate-docs.sh