-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (38 loc) · 1.63 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
language: php
php:
- 7.2
os: linux
dist: xenial
sudo: false
notifications:
email:
secure: "DRcGoU61qyeTqJdZL59LDyz2au2XEGgrUHPXlUilavPqgWvkdHn2+QWUmVWOHPYr1Ixt+enO9bRmTCO3VJAIHsAsBYF3dQjGG2MGPWwe8BJC3NLb0BzeH1F6buqZyYMT1qnfqQQngn48JDEjkP1pnBdHwWB9wRhrKnlKVn7NPkYPkUrdQetPKQNTazNtHZ4oack0xsKyCmfI5LlBbhZ47WS8nXc6dGL++pQKbtckdg8rPmkgKr2CDF0eJEaSDIVGUCq4BNgoyaMJ/lLlBHnmNeVXAK67rdlQDDfb9nnOtuTLIr/0rdpihRGjmd6I7jSzmWFlEyDCZ3eVu56K1kNG4I6IKXeGy93gtRd2gFkBt+JIyMrHxRHyRYHXPDb+PH/NOlTj7WyP+o2LSfSp+YsxRhGWJeYM77Yuqv/MbVgKzBHxRNfENXa0Nx17ySTbGLMtpVhGSl2/blQPn+BmK8dl65+ao0lRlZRPsjwlCoCdvZoNCAk3Uw2FmGt5htJM9lVPziNmonS/h2hv1mR/FCu2DbV4+Dob1v2uLD8B4TW1EiFoUusK1pk2H6YEdgxFtfW/f7TLmTdj69dOX7aFgjCArhIXdnCWbcnG18oc0Subk8uechReS1oAXQ70KhiS2wcc793uNUJicNiSEh+xSAFXkMD42H2SfcaXJULf4PvPUHA="
env:
- DB=MYSQL CORE_RELEASE=4.7
matrix:
include:
- php: 7.2
env: DB=PGSQL CORE_RELEASE=4.7
services:
- postgresql
- php: 7.2
env: DB=MYSQL CORE_RELEASE=4.7
services:
- mysql
- php: 7.2
env: DB=MYSQL CORE_RELEASE=4.5
services:
- mysql
before_script:
# Init PHP
- composer self-update || true
- phpenv rehash
- phpenv config-rm xdebug.ini
# Install composer dependencies
- composer validate
- composer require --no-update silverstripe/recipe-core:"^$CORE_RELEASE" --prefer-dist
- composer require --no-update phpunit/phpunit:^5.7
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:~2.0 --prefer-dist --no-update; fi
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
script:
- vendor/bin/phpunit