forked from ezsystems/ezplatform-matrix-fieldtype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (56 loc) · 2.69 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
dist: trusty
language: php
php:
- 7.3
env:
global:
- EZPLATFORM_REPO="https://github.com/ezsystems/ezplatform.git"
- APP_ENV=behat
- APP_DEBUG=1
cache:
directories:
- $HOME/.composer/cache
# test only master and stable branches (+ Pull requests)
branches:
only:
- master
- /^\d+\.\d+$/
matrix:
include:
- name: "Code Style Check"
env: CHECK_CS=1
- name: "PHP 7.3 Integration tests"
php: 7.3
env: PHPUNIT_CONFIG="phpunit-integration-legacy.xml"
notifications:
slack:
rooms:
- secure: KQTZ6cIbfe+wT8mXraJOFlRZEbGWgDFRfpaRwRmm6rI/4zbI8emV6/vsuvmgPq5O4L1GwnM6Bb9cyKj8hPd6QfaBr0WHZhYDIlTZLVnM94xyCBbts8AOoj+MA/7cozJwqeri8kmiYZhz8/9UCHT5Szu6LZhykb1BE/7+CC//YH9bix1/MAei3fQUDEaWjmCIcDr2tWcMeRncVBxGaQJQb4yduxQlAUsYJtdrwxKuUIoF9nGITP25XdlC3cwoSbqzJgVc/71bgMZ/7EZHAp4HN3In+sAQOLeFL+anbVpb8fUZLwfWDnj99B+gyJNG18Y0EncVhfoGnBjB6PA2+aWBW2lisTQ2VNZXc0j3HPxtQhBgtigdaHNO0Rwyz/Vl1Gw8K/yBPkNuMulp/V1aqyZq53idNuMByBSqmJs5sdivSNopgmNFuPtB+Gmg+XXnIbm4nOMDE5GneKFVOTABc/oLmektnp17iKOGQK9Hd8u4x8BgsvD+4RHFInPy6Ox0snQF+nGpZ0mF5gN6vER91TcDSbJ9/hbnK7JMw3c1rlSqjYMCarBnBzyr8BCUibVu1Kq88GjM/+fseJn4gEF5rRA4tigw4AfR2U3RlOyzK09yL+CNO8+9QNsHFH+fN+CAP9A2HZDjMHDfc1/5rS1DJ/8w8lp9fWyuVhp+V/WlTNGv1QM=
on_success: change
on_failure: always
on_pull_requests: false
before_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
install:
# Install packages if needed
- if [ "${CHECK_CS}" == "1" -o "${PHPUNIT_CONFIG}" != "" ]; then travis_retry composer install --prefer-dist --no-interaction --no-suggest ; fi
# Prepare whole environment if needed
- if [ "${BEHAT_OPTS}" != "" ]; then ./.travis/prepare_ezplatform.sh ${INSTALL_EZ_INSTALL_TYPE}; fi
script:
- if [ "${CHECK_CS}" == "1" ] ; then ./vendor/bin/php-cs-fixer fix -v --dry-run --show-progress=estimating ; fi
- if [ "${PHPUNIT_CONFIG}" != '' ]; then ./vendor/bin/phpunit -c "${PHPUNIT_CONFIG}"; fi
- if [ "${BEHAT_OPTS}" != "" ]; then cd "$HOME/build/ezplatform"; docker-compose exec --user www-data app sh -c "bin/ezbehat ${BEHAT_OPTS}" ; fi
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