-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
44 lines (37 loc) · 993 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
os:
- linux
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
services:
- mysql
env:
# deploy master to svn truck
- WP_VERSION=latest WP_MULTISITE=0 DEPLOYMASTER=1
- WP_VERSION=latest WP_MULTISITE=1
- WP_VERSION=5.2 WP_MULTISITE=0
# - WP_VERSION=5.2 WP_MULTISITE=1
before_script:
- phpenv config-rm xdebug.ini
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- composer self-update
- composer install
- phpenv versions
- php --version
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
- git clone https://github.com/litefeel/deploy2wp.git
- sh deploy2wp/scripts/install.sh
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
after_success:
- |
echo "TRAVIS_PHP_VERSION:$TRAVIS_PHP_VERSION"
if [[ "$DEPLOYMASTER" == "1" && "$TRAVIS_PHP_VERSION" == "7.4" ]]; then
deploy2wp/scripts/deploy2wp.sh
fi