-
Notifications
You must be signed in to change notification settings - Fork 49
/
.travis.yml
54 lines (50 loc) · 1.42 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
language: php
env:
global:
secure: HtxArKhTcQrlTRIKTmQvf85ytbVcSB24FLxIqOGboN7JauHWIu/0jIOeegH6a6ZN9GxsPeFqOI7vj0jZEhDcGTjvGe8FjX++W6JF1W6Sfo7Hx3iYEaLdGLV2O9pG3jQgsPs6BzvgYl1X0ihvm7QWziSNKZxYMMmVs8Z/dfouadc=
matrix:
include:
- php: 7.0
services: postgresql
env:
- RECIPE_VERSION=^1.0
- DB=PGSQL
- PHPUNIT_TEST=1
- php: 7.1
services: mysql
env:
- RECIPE_VERSION=4.2.x-dev
- DB=MYSQL
- PDO=1
- PHPUNIT_TEST=1
- php: 7.2
services: mysql
env:
- RECIPE_VERSION=4.x-dev
- DB=MYSQL
- PDO=1
- PHPUNIT_TEST=1
- php: 7.3
services: mysql
env:
- RECIPE_VERSION=4.x-dev
- DB=MYSQL
- PDO=1
- PHPUNIT_TEST=1
- php: 7.4
services: mysql
env:
- RECIPE_VERSION=4.x-dev
- DB=MYSQL
- PDO=1
- PHPUNIT_TEST=1
before_script:
- phpenv rehash
- phpenv config-rm xdebug.ini
- composer validate
- composer require --no-update silverstripe/recipe-cms:$RECIPE_VERSION
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.0.x-dev; fi
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ src/Forms/ tests/ ; fi