forked from silverstripe/recipe-kitchen-sink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (55 loc) · 2.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
language: php
dist: xenial
services:
- mysql
cache:
directories:
- $HOME/.composer/cache/files
addons:
apt:
packages:
- hunspell
- libhunspell-dev
- hunspell-en-us
php: 7.4
env:
global:
- DB=MYSQL
matrix:
include:
- env: PHPUNIT_TEST=Default PDO=1
- env: PHPUNIT_TEST=recipe-core
- env: PHPUNIT_TEST=framework-orm
- env: PHPUNIT_TEST=framework-core
- env: PHPUNIT_TEST=recipe-cms
- env: PHPUNIT_TEST=recipe-ccl PDO=1
- env: PHPUNIT_TEST=cwp-recipe-cms
- env: PHPUNIT_TEST=recipe-solr-search PDO=1
- env: PHPUNIT_TEST=recipe-authoring-tools
- env: PHPUNIT_TEST=recipe-blog
- env: PHPUNIT_TEST=recipe-collaboration
- env: PHPUNIT_TEST=recipe-content-blocks
- env: PHPUNIT_TEST=recipe-form-building
- env: PHPUNIT_TEST=recipe-reporting-tools
- env: PHPUNIT_TEST=recipe-services
- env: PHPUNIT_TEST=mfa
- env: PHPUNIT_TEST=optional-authenticators
before_script:
# Configure PHP
- phpenv rehash
- phpenv config-rm xdebug.ini || true
- echo 'memory_limit = 2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer validate
# Used to validate cow schema
- composer require silverstripe/cow ^2 --no-update
# Install dependencies
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
# Validate cow schema
- vendor/bin/cow schema:validate
script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit --testsuite "$PHPUNIT_TEST" --exclude-group exclude-from-travis; fi
notifications:
slack:
on_pull_requests: false
rooms:
secure: X37wqEdRXnfQ0GQgldToNXDmITIMZXrh/MyJ1OOqZ/tArFeDs/UeM/IilHM9bgmkA+fX4UxL4h3ZUWesE44ySg8PB/MEDAjSBtKp3RoT9usTLsVondFQs1DPMJhxvHeRa93Ev6kypFrZAjxPIYqgwT2Vt6voCC9OgbPx2zaXvUalYt78Vhmmboj4WIn1sZ9YmCUP6PGYgPBKzErqFms+y9zhaYImC9tGHC5Z+t3bmwdmMf+cwwivLgHwua6r1emwp7ON/Hpuocb70k8xCpRG+kAonws1uWdb9bxqobUoTzqdQr0Y793j5y28aOYpdoXJWQieogXVMyJl9Wwxg0RWPw/PwE/5xbO+1jLNUgKmymZ/rNl3peQhhzHE2vxnGOQdUcIE308BeJ5eRh3a9ZpmhImKcuwgVQp9oUE8m2YuKVcAKyD11nNDd19Ku11UjF0RAaFCv+Z1IPjEzMXa8SSDjBJUhX6ctfmXhC2oqr/ia4RgJXOmThWaeQDqRdYi6Eeiqz3FMZsKRGZZqhjoIznCWR6z7GomlP4yP0PVvO2NahnCsU6iyMej4EBvOVX0rhHppI1CE1cBbC7L80CIJAGf5o3s/2A6alnYPq+rLk3bBrDOFn7SqFEFoinsnOjg6n0v2KFZ79EKd4h1YDrQ5Oj9BHCOj3yn0oZZBCDUIvwJTrY=