-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.travis.yml
70 lines (61 loc) · 3.15 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
dist: focal
language: php
php:
- 7.4
services:
- docker
cache:
directories:
- $HOME/.composer/cache
env:
global:
- REMOTE_IMAGE="ezsystems/php"
- LATEST_PHP="7.3"
- LATEST_NODE="12"
- FORMAT_VERSION="v2"
- TEST_CMD="vendor/bin/behat -v --profile=browser --suite=admin-ui --tags=@richtext --config=behat_ibexa_oss.yaml"
matrix:
# Run per Dockerfile-<PHP_VERSION>-<NODE_VERSION>
- PHP_VERSION="7.1" NODE_VERSION="10" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.1" NODE_VERSION="12" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.1" NODE_VERSION="14" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.2" NODE_VERSION="10" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.2" NODE_VERSION="12" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.2" NODE_VERSION="14" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.3" NODE_VERSION="10" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.3" NODE_VERSION="12"
- PHP_VERSION="7.3" NODE_VERSION="14"
- PHP_VERSION="7.4" NODE_VERSION="10" PRODUCT_VERSION="^2.5" TEST_CMD="bin/behat -v --profile=adminui --suite=richtext"
- PHP_VERSION="7.4" NODE_VERSION="12"
- PHP_VERSION="7.4" NODE_VERSION="14"
- PHP_VERSION="7.4" NODE_VERSION="16"
- PHP_VERSION="8.0" NODE_VERSION="12" COMPOSER_OPTIONS="--ignore-platform-req=php"
- PHP_VERSION="8.0" NODE_VERSION="14" COMPOSER_OPTIONS="--ignore-platform-req=php"
- PHP_VERSION="8.0" NODE_VERSION="16" COMPOSER_OPTIONS="--ignore-platform-req=php"
- PHP_VERSION="8.1" NODE_VERSION="12" COMPOSER_OPTIONS="--ignore-platform-req=php"
- PHP_VERSION="8.1" NODE_VERSION="14" COMPOSER_OPTIONS="--ignore-platform-req=php"
- PHP_VERSION="8.1" NODE_VERSION="16" COMPOSER_OPTIONS="--ignore-platform-req=php"
before_script:
- export COMPOSER_HOME=$(composer config --global home)
- if [[ -n "${DOCKER_PASSWORD_TEST}" ]]; then echo ${DOCKER_PASSWORD_TEST} | docker login -u ${DOCKER_USERNAME_TEST} --password-stdin ; fi
- echo "{\"github-oauth\":{\"github.com\":\"d0285ed5c8644f30547572ead2ed897431c1fc09\"}}" > ~/.composer/auth.json
- if [ "$GITHUB_TOKEN" != "" ] ; then composer global config github-oauth.github.com $GITHUB_TOKEN ; fi
- bin/.travis/update_docker.sh
- bin/.travis/build.sh ${PHP_VERSION} ${NODE_VERSION}
script: bin/.travis/test.sh
after_failure: if [ -d volumes/ezplatform ]; then cd volumes/ezplatform; docker-compose logs; fi
after_success:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
- if [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_BRANCH" = "v1" ]; then bin/.travis/push.sh ${REMOTE_IMAGE} ${FORMAT_VERSION}; fi
# test only master (+ Pull requests)
branches:
only:
- master
- /^v\d$/
- /^v\d.\d.\d$/
# disable mail notifications
notifications:
email: false
# reduce depth (history) of git checkout
git:
depth: 30