forked from jigoshop/jigoshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·81 lines (80 loc) · 3.06 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# If you fork Jigoshop and want to use Travis on your fork, please go to:
# https://github.com/yourname/jigoshop/admin/hooks#travis_minibucket
# and follow the instructions
language: php
php:
# PHP Versions Jigoshop Officially Supports
- 5.3
- 5.4
# Ones that support for legacy reasons
- 5.2
env:
# Officialy Supported WP Versions (w/ and w/o MS)
- WP_VERSION=3.4.2 WP_MULTISITE=0
- WP_VERSION=3.4.2 WP_MULTISITE=1
# These versions are Beta versions (tested against but not supported by Jigoshop)
- WP_VERSION=3.5-beta3 WP_MULTISITE=0
- WP_VERSION=3.5-beta3 WP_MULTISITE=1
# - WP_VERSION=3.5-beta2 WP_MULTISITE=0
# - WP_VERSION=3.5-beta2 WP_MULTISITE=1
# - WP_VERSION=3.5-beta-1 WP_MULTISITE=0
# - WP_VERSION=3.5-beta-1 WP_MULTISITE=1
# These versions of WordPress we do not officially support
# To test Jigoshop on them, uncomment the line, by removing the "#"
# and then uncomment the allowed failures line for the respective
# versions below.
# - WP_VERSION=3.4.1 WP_MULTISITE=0
# - WP_VERSION=3.4.1 WP_MULTISITE=1
# - WP_VERSION=3.4 WP_MULTISITE=0
# - WP_VERSION=3.4 WP_MULTISITE=1
# - WP_VERSION=3.3.3 WP_MULTISITE=0
# - WP_VERSION=3.3.3 WP_MULTISITE=1
# - WP_VERSION=3.3.2 WP_MULTISITE=0
# - WP_VERSION=3.3.2 WP_MULTISITE=1
# - WP_VERSION=3.3.1 WP_MULTISITE=0
# - WP_VERSION=3.3 WP_MULTISITE=1
# - WP_VERSION=3.3 WP_MULTISITE=0
# - WP_VERSION=3.2.1 WP_MULTISITE=1
# - WP_VERSION=3.2.1 WP_MULTISITE=0
# - WP_VERSION=3.2 WP_MULTISITE=0
# - WP_VERSION=3.2 WP_MULTISITE=1
# Test against (but allow fail) on older WP and PHP versions, as well as beta WP
# Also test against the current Master (development) Github repo of WordPress
matrix:
allow_failures:
# Beta Versions
- env: WP_VERSION=3.5-beta3 WP_MULTISITE=0
- env: WP_VERSION=3.5-beta3 WP_MULTISITE=1
# - env: WP_VERSION=3.5-beta2 WP_MULTISITE=0
# - env: WP_VERSION=3.5-beta2 WP_MULTISITE=1
# - env: WP_VERSION=3.5-beta-1 WP_MULTISITE=0
# - env: WP_VERSION=3.5-beta-1 WP_MULTISITE=1
# Old Versions (uncomment lines here and above to test)
# - WP_VERSION=3.4.1 WP_MULTISITE=0
# - WP_VERSION=3.4.1 WP_MULTISITE=1
# - WP_VERSION=3.4 WP_MULTISITE=0
# - WP_VERSION=3.4 WP_MULTISITE=1
# - env: WP_VERSION=3.3.3 WP_MULTISITE=0
# - env: WP_VERSION=3.3.3 WP_MULTISITE=1
# - env: WP_VERSION=3.3.2 WP_MULTISITE=0
# - env: WP_VERSION=3.3.2 WP_MULTISITE=1
# - env: WP_VERSION=3.3.1 WP_MULTISITE=0
# - env: WP_VERSION=3.3.1 WP_MULTISITE=1
# - env: WP_VERSION=3.3 WP_MULTISITE=0
# - env: WP_VERSION=3.3 WP_MULTISITE=1
# - env: WP_VERSION=3.2.1 WP_MULTISITE=0
# - env: WP_VERSION=3.2.1 WP_MULTISITE=1
# - env: WP_VERSION=3.2 WP_MULTISITE=0
# - env: WP_VERSION=3.2 WP_MULTISITE=1
- php: 5.2
branches:
exclude:
- master
before_script:
- cp tests/unittests-config.travis.php vendor/wordpress-tests/unittests-config.php
- wget -O wordpress.tar.gz http://wordpress.org/wordpress-$WP_VERSION.tar.gz
- tar -xzf wordpress.tar.gz -C vendor
- mysql -e "create database IF NOT EXISTS jigoshop_test;" -uroot
script: phpunit --coverage-text
notifications:
email: false