forked from awesomemotive/easy-digital-downloads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (76 loc) · 3.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# If you fork EDD and want to use Travis on your fork, please go to:
# https://github.com/yourname/Easy-Digital-Downloads/admin/hooks#travis_minibucket
# and follow the instructions
language: php
php:
# PHP Versions EDD 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.5 WP_MULTISITE=0
- WP_VERSION=3.5 WP_MULTISITE=1
# Last WP Version (tested against but not supported by EDD)
- WP_VERSION=3.4.2 WP_MULTISITE=0
- WP_VERSION=3.4.2 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 EDD 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:
# Legacy Versions
- env: WP_VERSION=3.4.2 WP_MULTISITE=0
- env: WP_VERSION=3.4.2 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
before_script:
- wget -O testsuite.zip https://github.com/nb/wordpress-tests/archive/460b9c4ad9db7eea4710f151851060ae1921ea7c.zip
- unzip testsuite.zip -d vendor
- cp -r vendor/wordpress-tests-460b9c4ad9db7eea4710f151851060ae1921ea7c vendor/wordpress-tests
- 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 edd_test;" -uroot
script: phpunit --coverage-text
notifications:
email: false