-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
54 lines (46 loc) · 2.16 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
dist: trusty
language: php
php:
- 7.1
env:
global:
- EZPLATFORM_REPO="https://github.com/ezsystems/ezplatform.git"
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- BEHAT_OPTS="--mode=behat --profile=adminui --suite=adminuimodules"
- APP_ENV=behat
- APP_DEBUG=1
cache:
directories:
- $HOME/.composer/cache
# test only master and stable branches (+ Pull requests)
branches:
only:
- master
- /^\d+\.\d+$/
notifications:
slack:
rooms:
- secure: kCYSDmzs1tK5n02Az0gyiGXEPzMw7bLnQ2h2mXWSoysGllLJA55360IJIveDx55+P/XZr8r9FFkZ6es76dESbNubetGkVPxNyZ+Nyxs2FE80GH28e8OihjFL880ZW5Ud/pWqBwzYyNU6XhW82lLBE8pcEnOIDBkFeHLTq3aNhur+6vY2m7tAdP93chGDjMjSTy01qzD02F4B3YrnyQmTZPDdEPaZerpfxrE62Msj7rMIF0WwdJcSEVmIXG/+3CMiqoZSHfU9JGcpn94xBJOqTDHU1QqB5sTT45udEH5d/2+6Yh3kLrCm/zi+h/WK6YSmknUHQAxf4keRQ0DJ5LCwfG2gexcqyhLFf/YESPb6PP49/vaKmmy7i1T4jhhEe0G/X9ucOcfUZ7hLGxE1bkrwADy9h3+YxOKOqEn24sEv7zWYDDL6pVHt3N5gcwCnSwZKp3mBXW6v4dhiYBspcNEODj+rI13CP82H/zjtp/dhCIjJv2TsL03Ei84Fzqc05El1/aykONzkYfEJDHbab2yS0ioiQJdo5ZzyAXQkHjOuHCR0bSPNx6c8vhfSVFPSwSah53OYLrpB3+hURFWbo15zfiEBnRZ0moq8eiVEHT2G8RdgSvb8nD6EtsjhCKKlEawreTjqYcgmxdcJVvJ7s8ym9Hv3isYfmwZgsv9Hll3Mt60=
on_success: change
on_failure: always
on_pull_requests: false
install:
# Disable XDebug for performance
- phpenv config-rm xdebug.ini
# Get latest composer build
- travis_retry composer selfupdate
# Avoid memory issues on composer install
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Prepare Behat environment
- ./.travis/prepare_ezplatform.sh
script:
- cd "$HOME/build/ezplatform"; docker-compose exec --user www-data app sh -c "./bin/ezbehat $BEHAT_OPTS"
after_failure:
# Will show us the last bit of the log of container's main processes
# (not counting shell process above running php and behat)
# NOTE: errors during docker setup of travis build won't show up here (can't output all as it is too much in debug/verbose mode)
- docker-compose logs -t --tail=15
# Will show us what is up, and how long it's been up
- docker ps -s
after_script:
- if [ "${BEHAT_OPTS}" != "" ] ; then bin/ezreport ; fi