forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 1.68 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
sudo: false
dist: xenial
services: mysql
language: php
php:
- 5.6.30
- 7.1
- 7.3
env:
global:
- TMPDIR=/tmp
matrix:
- WP_VERSION=4.7.12 WP_MULTISITE=0 PREFER_LOWEST="--prefer-lowest --prefer-stable"
- WP_VERSION=4.7.12 WP_MULTISITE=1 PREFER_LOWEST=""
- WP_VERSION=latest WP_MULTISITE=0 PREFER_LOWEST=""
- WP_VERSION=latest WP_MULTISITE=1 PREFER_LOWEST="--prefer-lowest --prefer-stable"
matrix:
exclude:
- php: 7.3
env: WP_VERSION=4.7.12 WP_MULTISITE=0 PREFER_LOWEST="--prefer-lowest --prefer-stable"
- php: 7.3
env: WP_VERSION=4.7.12 WP_MULTISITE=0 PREFER_LOWEST=""
- php: 7.3
env: WP_VERSION=4.7.12 WP_MULTISITE=1 PREFER_LOWEST=""
before_script:
- if [ "$TRAVIS_PHP_VERSION" == 5.5 ] || [ "$TRAVIS_PHP_VERSION" == 5.4 ] || [ "$TRAVIS_PHP_VERSION" == 7.1 ]; then pear config-set preferred_state beta; pecl channel-update pecl.php.net; yes | pecl install imagick; fi
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- composer update $PREFER_LOWEST --dev --prefer-source
- composer require satooshi/php-coveralls:1.0.*
script:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PHP_VERSION" == 7.1 ]; then mkdir -p build/logs; vendor/phpunit/phpunit/phpunit --coverage-clover build/logs/clover.xml -c phpunit.xml; else vendor/phpunit/phpunit/phpunit -c phpunit-nocover.xml; fi
after_script:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PHP_VERSION" == 7.1 ]; then php vendor/bin/coveralls -v; fi
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PHP_VERSION" == 7.1 ]; then coveralls; fi
- bash <(curl -s https://codecov.io/bash)