forked from nextcloud/registration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
130 lines (111 loc) · 4.3 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
sudo: false
language: php
php:
- 5.6
- 7.0
- 7.1
cache:
directories:
- $HOME/.composer/cache/files
services:
- mysql
- postgresql
addons:
apt:
packages:
- php5-pgsql
- libxml2-utils
env:
global:
- PHP_COVERAGE=FALSE
matrix:
# Nextcloud 9+
- CORE_TYPE=nextcloud CORE_BRANCH=master DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable12 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable11 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable10 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable9 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=master DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable12 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable11 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable10 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable9 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=master DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable12 DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable11 DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable10 DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable9 DB=pgsql
# ownCloud 9.1+
- CORE_TYPE=owncloud CORE_BRANCH=master DB=sqlite
- CORE_TYPE=owncloud CORE_BRANCH=stable10 DB=sqlite
- CORE_TYPE=owncloud CORE_BRANCH=stable9.1 DB=sqlite
- CORE_TYPE=owncloud CORE_BRANCH=master DB=mysql
- CORE_TYPE=owncloud CORE_BRANCH=stable10 DB=mysql
- CORE_TYPE=owncloud CORE_BRANCH=stable9.1 DB=mysql
- CORE_TYPE=owncloud CORE_BRANCH=master DB=pgsql
- CORE_TYPE=owncloud CORE_BRANCH=stable10 DB=pgsql
- CORE_TYPE=owncloud CORE_BRANCH=stable9.1 DB=pgsql
matrix:
fast_finish: true
exclude:
# Nextcloud prior v11 is not compatible with PHP 7.1
# (see https://github.com/nextcloud/server/blob/stable10/console.php#L42)
- php: 7.1
env: CORE_TYPE=nextcloud CORE_BRANCH=stable9 DB=sqlite
- php: 7.1
env: CORE_TYPE=nextcloud CORE_BRANCH=stable9 DB=mysql
- php: 7.1
env: CORE_TYPE=nextcloud CORE_BRANCH=stable9 DB=pgsql
- php: 7.1
env: CORE_TYPE=nextcloud CORE_BRANCH=stable10 DB=sqlite
- php: 7.1
env: CORE_TYPE=nextcloud CORE_BRANCH=stable10 DB=mysql
- php: 7.1
env: CORE_TYPE=nextcloud CORE_BRANCH=stable10 DB=pgsql
# ownCloud prior v10 is not compatible with PHP 7.1
# (see https://github.com/owncloud/core/blob/stable9.1/console.php#L47)
- php: 7.1
env: CORE_TYPE=owncloud CORE_BRANCH=stable9.1 DB=sqlite
- php: 7.1
env: CORE_TYPE=owncloud CORE_BRANCH=stable9.1 DB=mysql
- php: 7.1
env: CORE_TYPE=owncloud CORE_BRANCH=stable9.1 DB=pgsql
include:
# Nextcloud prior v13 is not compatible with PHP 7.2
# (see https://github.com/nextcloud/server/issues/6786#issuecomment-335154372)
- php: 7.2
env: CORE_TYPE=nextcloud CORE_BRANCH=master DB=sqlite
- php: 7.2
env: CORE_TYPE=nextcloud CORE_BRANCH=master DB=mysql
- php: 7.2
env: CORE_TYPE=nextcloud CORE_BRANCH=master DB=pgsql
# ownCloud prior v10 is not compatible with PHP 7.2
# (see https://github.com/owncloud/core/pull/29878)
- php: 7.2
env: CORE_TYPE=owncloud CORE_BRANCH=master DB=sqlite
- php: 7.2
env: CORE_TYPE=owncloud CORE_BRANCH=master DB=mysql
- php: 7.2
env: CORE_TYPE=owncloud CORE_BRANCH=master DB=pgsql
- php: 7.2
env: CORE_TYPE=owncloud CORE_BRANCH=stable10 DB=sqlite
- php: 7.2
env: CORE_TYPE=owncloud CORE_BRANCH=stable10 DB=mysql
- php: 7.2
env: CORE_TYPE=owncloud CORE_BRANCH=stable10 DB=pgsql
before_install:
# XDebug is only needed if we report coverage -> speeds up other builds
- if [[ "$PHP_COVERAGE" = "FALSE" ]]; then phpenv config-rm xdebug.ini; fi
install:
- . ./tests/scripts/core-download.sh
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-database.sh
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-setup.sh
script:
# Check info.xml schema validity
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/lint-appinfo.sh
# Check PHP syntax errors
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/lint-php.sh
# Run app code checker but do not fail, as we have to use private API for now
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/app-check-code.sh || true
# Run PHP tests
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/phpunit.sh