forked from impress-org/givewp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 876 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
language: php
sudo: required
php:
- 5.6
- 7.0
- 7.1
# - 7.2
# - 7.3
env:
- WP_VERSION=latest WP_MULTISITE=0 PHP_LATEST_STABLE=7.1
matrix:
include:
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=1 PHP_LATEST_STABLE=7.1
- php: 5.3
env: WP_VERSION=latest WP_MULTISITE=0 PHP_LATEST_STABLE=7.1
dist: precise
before_install:
- |
if [ ${TRAVIS_PHP_VERSION:0:3} != "5.3" ]; then
npm i npm@latest -g
chmod +x docker-compose.yml
sudo docker-compose up -d
sudo chmod 777 -R ~/wordpress_data/
fi
before_script:
- phpenv config-rm xdebug.ini
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- bash tests/bin/install.sh give_test root '' localhost $WP_VERSION
- bash tests/bin/travis.sh before
script:
- phpunit -c phpunit.xml
- bash tests/e2e/bin/install.sh
after_script:
- bash tests/bin/travis.sh after