-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
63 lines (54 loc) · 1.64 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
language: php
sudo: false
notifications:
email:
on_success: never
on_failure: never
branches:
only:
- master
- develop
matrix:
include:
- php: 5.5
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=4.8
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=4.8
- php: 7.0
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=5.7
- php: 7.1
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=6.3
- php: 5.5
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=4.8
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=4.8
- php: 7.0
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=5.7
- php: 7.1
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=6.3
fast_finish: true
# Composer package installation
install:
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
# Move to Travis Build Directory
- cd $TRAVIS_BUILD_DIR
# Install WP CLI
- curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- chmod +x wp-cli.phar
- sudo mv wp-cli.phar /usr/local/bin/wp
before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- composer self-update
- composer install --no-interaction
- mkdir -p build/logs
- ls -al
script:
- vendor/bin/codecept run wpunit --coverage --coverage-xml
after_success:
- travis_retry php coveralls.phar -v
cache:
directories:
- $HOME/.composer/cache