forked from SwedbankPay/swedbank-pay-woocommerce-payments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.04 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
46
47
48
49
50
51
52
53
54
55
56
57
sudo: false
dist: trusty
language: php
php:
#- 5.6
#- 7.0
- 7.1
#- 7.2
#- hhvm
env:
- WOO_VERSION="3.6.1" WP_VERSION=latest
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: 7.2
install:
- cd /tmp
- git clone https://github.com/woocommerce/woocommerce
- cd woocommerce/
- git checkout tags/$WOO_VERSION
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
- cd ..
- cd $TRAVIS_BUILD_DIR
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
phpenv config-rm xdebug.ini
else
echo "xdebug.ini does not exist"
fi
script:
- |
phpunit
WP_MULTISITE=1 phpunit
deploy:
provider: script
script: curl -u "travis:${app_token}" -d "release=${TRAVIS_TAG:1}" "http://magento7.aait.nu/scripts/deploy.php"
on:
tags: true
all_branches: true