forked from woocommerce/woocommerce-gateway-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 954 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
language: php
sudo: false
# Test main supported versions of PHP against latest WP. 5.2 is min supported PHP version.
php:
- 5.6
- 7.0
- 7.1
env:
- WP_VERSION=latest WP_MULTISITE=0 WC_VERSION=2.6.14
# Additonal tests against stable PHP (min recommended version is 5.6) and past supported versions of WP.
matrix:
include:
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=1 WC_VERSION=2.6.14
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=0 WC_VERSION=3.0.0-rc.2
install:
- . $HOME/.nvm/nvm.sh
- nvm install 4.0.0
- nvm use 4.0.0
- npm install
- travis_retry composer install --no-interaction --prefer-source
before_script:
- phpenv config-rm xdebug.ini
- bash tests/bin/install.sh wc_stripe_test root '' localhost $WP_VERSION
- bash tests/bin/travis.sh before
#save node_modules to speed up build
cache:
directories:
- node_modules
after_script:
- bash tests/bin/travis.sh after