-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
64 lines (52 loc) · 1.34 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
language: php
branches:
only:
- master
- /^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/
services:
- mysql
cache:
apt: true
directories:
- $HOME/.composer/cache/files
notifications:
email:
on_success: never
on_failure: change
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
global:
- COMPOSER_NO_INTERACTION=1
matrix:
- WP_VERSION=nightly
- WP_VERSION=latest WITH_COVERAGE=true
- WP_VERSION=4.9.5
matrix:
include:
- php: nightly
env: WP_VERSION=latest
exclude:
- php: nightly
env: WP_VERSION=latest WITH_COVERAGE=true
allow_failures:
- php: nightly
- env: WP_VERSION=nightly
fast_finish: true
before_install:
- $WITH_COVERAGE || phpenv config-rm xdebug.ini || true
# Install helper scripts
- travis_retry composer global require --prefer-dist --no-suggest typisttech/travis-nginx-wordpress
- export PATH=$HOME/.composer/vendor/bin:$PATH
- tnw-install-wordpress
install:
- travis_retry composer install --prefer-dist --no-suggest
script:
- if [[ "$WITH_COVERAGE" == "true" ]]; then composer test:coverage; fi
- if [[ "$WITH_COVERAGE" != "true" ]]; then composer test; fi
after_script:
- if [[ "$WITH_COVERAGE" == "true" ]]; then travis_retry tnw-upload-coverage-to-scrutinizer; fi
- if [[ "$WITH_COVERAGE" == "true" ]]; then travis_retry tnw-upload-coverage-to-codecov; fi