forked from ezsystems/ezplatform-admin-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 3.24 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
70
71
72
73
74
75
76
77
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: "Unit tests"
env: PHPUNIT_CONFIG='phpunit.xml'
- name: "Admin-UI tests on Clean P"
env:
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- BEHAT_OPTS="--profile=adminui --suite=adminui"
- name: "Admin UI tests using different personas"
env:
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- SETUP_BEHAT_OPTS="--profile=setup --suite=personas"
- BEHAT_OPTS="--profile=adminui --suite=personas"
notifications:
slack:
rooms:
- secure: P0Qir+iYhFgO/PLIR3DucuqwBxYaZ0Avkq8auPEgZOHtlSSyHpm0sRUJqaw0s49ClUfn2NhOC8KXVv13O0Ngzh6Ue/NvzMsIX97oU8JqczGV6LT7Z2nsWFpV1hDlgC0bM6W/dl2Vj6zTK24gNaFFD8P+TbYOeAvLArlFl9nfqhJ/jh1ztBtjcsDPVs0LZu+aQp/XBQzENtRSiR7u7nFlVuSbzR9zY376t8LZyy2Re4ynef7EiXimLA2wSKMb9ID8h1pj1p0vx1Ts3DMLpOlKJaSeEsvneqLRyGA/OB+nfQlAASQYhplKs5gJBiMrhSi/9kLo+LdqiMEdJsvpq/mO5qR0r3e4Jnq0utW0kTPAwuOfS+Oh4XpZhbfpwokQmTgjbPDpt79q0Dzjz+veUep96Kj1DBxcxpSCjk9xJZWYbR1RPgDJmK9FRQJYWJHcj//U5ilup9SJ/AgiHcu4hsa109lc+0znTQOjXhXa1Y7Z5jr44T3h3lypq393uVMUUHogav/kv2tpLwu05RMzJ8VMT03aHSCtAGvgDf5IJOIOL/P2vRpoLCc/iFukzOuAYNxDQ60Us8Ej2xKhCp3r0ETM73PsBPvUTGzL31uaQ+LRYy1067HIUFtepBT7bVwmuCI5oRCSvRQpZeku9mw6On0B+JJLRSajh9MP6c4tB+yza4Y=
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
before_script:
- if [ "${SETUP_BEHAT_OPTS}" != "" ] ; then cd "$HOME/build/ezplatform"; docker-compose exec --user www-data app sh -c "bin/ezbehat $SETUP_BEHAT_OPTS" ; 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