-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
29 lines (22 loc) · 906 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
sudo: false
language: php
php:
- 5.3
- 5.4
- 5.5
- 7.0
- "hhvm"
env:
- WP_VERSION=latest WP_MULTISITE=0
before_script:
- if [ "$TRAVIS_PHP_VERSION" == 5.5 ] || [ "$TRAVIS_PHP_VERSION" == 5.4 ] || [ "$TRAVIS_PHP_VERSION" == 7.0 ]; then autodetect | pecl install imagick; fi
- if [ "$TRAVIS_PHP_VERSION" == 5.3 ]; then autodetect | pecl install imagick-3.0.1; fi
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- composer install --prefer-source
script:
- if [ "$TRAVIS_BRANCH" == "master" ]; then mkdir -p build/logs; phpunit --coverage-clover build/logs/clover.xml; fi
- if [ "$TRAVIS_BRANCH" != "master" ]; then phpunit -c bin/phpunit-nocover.xml; fi
after_script:
- if [ "$TRAVIS_BRANCH" == "master" ]; then php vendor/bin/coveralls -v; fi
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then coveralls; fi