forked from gitlost/gs-only-pdf-preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 1.24 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
language: php
sudo: false
php:
- 7.0
- 7.1
- 5.6
- 5.2
- 5.3
- 5.4
- 5.5
env:
- WP_VERSION=nightly
- WP_VERSION=latest
- WP_VERSION=4.7.5
- WP_VERSION=4.7.4
- WP_VERSION=4.7.3
- WP_VERSION=4.7.2
- WP_VERSION=4.7.1
- WP_VERSION=4.7
matrix:
allow_failures:
- env: WP_VERSION=nightly
node_js: 6
install:
- npm install grunt-cli
- npm install
before_script:
- if [[ ! ( $TRAVIS_PHP_VERSION = '7.0' && $WP_VERSION = 'latest' ) ]]; then phpenv config-rm xdebug.ini || true; fi
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- WP_TESTS_DIR=/tmp/wordpress-tests-lib phpunit
- |
if [[ $TRAVIS_PHP_VERSION != '5.2' ]]; then
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && php wp-cli.phar --info
ln -s /tmp/wordpress src
php wp-cli.phar core install --path=src --url=example.com --title='Test Blog' --admin_user=admin --admin_email=admin@example.com --debug
WP_TESTS_DIR=/tmp/wordpress-tests-lib php wp-cli.phar gopp gen_js_fixtures --require=tools/gen_js_command.php --path=src --debug
WP_TESTS_DIR=/tmp/wordpress-tests-lib grunt --verbose test_qunit
fi
after_success:
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $WP_VERSION = 'latest' ]]; then bash bin/coverage.sh; fi