forked from ezsystems/ezplatform-query-fieldtype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 2.14 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
language: php
php:
- 7.3
branches:
only:
- master
- dev
- /^\d.\d+$/
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- name: "Code Style Check"
env: TARGET="codestyle"
- name: "phpspec on PHP7.3"
php: 7.3
env: TARGET="phpspec"
- name: "phpspec on PHP7.4"
php: 7.4
env: TARGET="phpspec"
- name: "Browser tests using Query fieldtype"
php: 7.3
env:
- TARGET="behat"
- EZPLATFORM_REPO="https://github.com/ezsystems/ezplatform.git"
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- APP_ENV=behat
- APP_DEBUG=1
- BEHAT_OPTS="--profile=adminui --suite=adminui --tags=@queryFieldType"
install:
# Disable XDebug for performance
- phpenv config-rm xdebug.ini
- if [ "$TARGET" == "phpspec" ] || [ "$TARGET" == "codestyle" ] ; then COMPOSER_MEMORY_LIMIT=-1 composer install; fi
- if [ "$TARGET" == "behat" ] ; then ./.travis/prepare_ezplatform.sh; fi
script:
- if [ "$TARGET" == "phpspec" ] ; then ./vendor/bin/phpspec run --format=pretty; fi
- if [ "$TARGET" == "codestyle" ] ; then ./vendor/bin/php-cs-fixer fix --dry-run -v --show-progress=estimating; fi
- if [ "$TARGET" == "behat" ]; then cd "$HOME/build/ezplatform"; docker-compose exec --user www-data app sh -c "bin/ezbehat ${BEHAT_OPTS}" ; fi
notifications:
slack:
rooms:
- secure: hviD7OAoMq5ZH9/4SPwBFoUsx8sO5KuZi3sPz5chpAhz0sHnBLyxvLzSvudKRtqNoMcS/+f/EaNvW2r3yLfQyd+QH9DUAqHoflQrMQnOQWf4CfXfjszTfKMSfU8zBclV+4/Zgs2fs1iDsKzEXF8FY21sElwahB0/ktVHjBiVaLZz6XwetiWYpxwjkKi+bsL80ytstmD8U5BXyywLZsTq+E5Gh5HtxOMtbfh4AITE4nOnWNLikwRMfxl44mAK8D7GOFe/tvxFaysojvggDoS+5LJyDbnKv74/yc2RzWz6cPuEzGn/8xArhfoWx/UwPbedlP8wPZfnOpSEF8+g4Kt3V0/bpNMPU7TrOOrLnIg5os0gsW2HJhFDLIR4qXMq3LLWURNmlgsXWlGm75mHDpusdRBrCHfDbORf+5TMPoop20YEqHPCxhl941pjAX2JGj3PzBb6eWmzEJO9Vh+861MhDv0Lz/rRw9Kq/bMQc0mLZ2O8L74iXrHeTloUDH2yStUf1eE+0aonIEqF/mxAKl8wBrk/E2OE25Udkj8qExI67c1ldn1QWBa8Q3AhrsThwCOpXD6VDjB3dP6A98JedR94dpbe2w0f8HaXqPFMZe/YovGptfg6CrPMwgKYf++yTHiWBd0khh0CEd1FT1wqeT+VlZZmmTH+nqsIi2CXmnk6cVE=
on_success: change
on_failure: always
on_pull_requests: false