forked from kilbot/WooCommerce-POS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (37 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
sudo: required
language: node_js
node_js:
- "node"
services:
- docker
env:
matrix:
- PHP_VERSION=php54 WC_VERSION=latest WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php55 WC_VERSION=latest WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php56 WC_VERSION=latest WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php70 WC_VERSION=latest WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php54 WC_VERSION=2.5.5 WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php55 WC_VERSION=2.5.5 WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php56 WC_VERSION=2.5.5 WP_VERSION=latest WP_MULTISITE=0
- PHP_VERSION=php70 WC_VERSION=2.5.5 WP_VERSION=latest WP_MULTISITE=0
before_install:
- sudo apt-get update -qq
- sudo apt-get install docker-engine --no-install-recommends -y -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew"
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.8.0-rc2/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin/
- docker-compose -v
- docker -v
install:
- npm install && node_modules/.bin/grunt build --force
- npm run start:${PHP_VERSION}
before_script:
- sleep 60
- docker exec ${PHP_VERSION} wp core version --allow-root
- docker exec ${PHP_VERSION} wp plugin list --allow-root --status=active
script:
- npm run unit-test:js
- if ["${PHP_VERSION}" == "php70"] && ["${WC_VERSION}" == "latest"]; then npm run integration-test:js ; fi
- npm run unit-test:${PHP_VERSION}
- npm run integration-test:${PHP_VERSION}