-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (47 loc) · 1.25 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
dist: xenial
addons:
apt:
packages:
- ant-optional
language: php
php:
- "7.3"
- "7.2"
- "7.1"
env:
- CONTAO_VERSION=~4.10.0
- CONTAO_VERSION=~4.9.0
- CONTAO_VERSION=~4.4.0
# Exclude impossible Contao Version combinations.
matrix:
fast_finish: true
exclude:
- php: "7.1"
env: CONTAO_VERSION=~4.10.0
- php: "7.1"
env: CONTAO_VERSION=~4.9.0
allow_failures:
- env: CONTAO_VERSION=~4.10.0
sudo: false
before_install:
- echo "memory_limit = -1" > travis.php.ini && phpenv config-add travis.php.ini
install:
- travis_retry composer self-update && composer --version
- travis_retry composer require contao/core-bundle $CONTAO_VERSION --no-update
- >
if [ "x${TRAVIS_TAG}" != "x" ]; then
export COMPOSER_ROOT_VERSION=${TRAVIS_TAG}
else
export COMPOSER_ROOT_VERSION=$([[ ${TRAVIS_BRANCH} =~ hotfix/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
&& echo ${BASH_REMATCH[1]} \
|| echo dev-${TRAVIS_BRANCH})
fi
- echo "Using root version ${COMPOSER_ROOT_VERSION}"
- travis_retry composer update --prefer-dist --no-interaction
script: ant -keep-going
# Hack to make things work again - we can not use a shallow repository.
git:
depth: 2147483647
cache:
directories:
- vendor