forked from 10up/wp_mock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (38 loc) · 917 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
language: php
matrix:
include:
- php: '7.1'
env: WP_MOCK_INSTALL_LOWEST=0
- php: '7.2'
env: WP_MOCK_INSTALL_LOWEST=0
- php: '7.3'
env: WP_MOCK_INSTALL_LOWEST=0
- php: nightly
env: WP_MOCK_INSTALL_LOWEST=0
- php: '7.1'
env: WP_MOCK_INSTALL_LOWEST=1
- php: '7.2'
env: WP_MOCK_INSTALL_LOWEST=1
- php: '7.3'
env: WP_MOCK_INSTALL_LOWEST=1
- php: nightly
env: WP_MOCK_INSTALL_LOWEST=1
allow_failures:
- php: nightly
env: WP_MOCK_INSTALL_LOWEST=0
- php: nightly
env: WP_MOCK_INSTALL_LOWEST=1
before_script:
- if [ 1 -eq $WP_MOCK_INSTALL_LOWEST ]; then composer update --prefer-lowest; else composer update; fi
script:
- mkdir -p build/logs
- composer run-script coverage
cache:
directories:
- vendor
branches:
only:
- dev
- master
after_success:
- travis_retry php vendor/bin/php-coveralls