-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (35 loc) · 1.22 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
# Rationale:
# - Build only master and tags
# - Master is the most current not yet released state
# - Tags are the only way to release a version
# - If tag matches the latest version configured here, the floating tag
# `:latest` will be conferred to this particular IMAGE.
# - PR are being built and tested, but not published
# - Concurrency is disabled; Newer jobs superseding older ones
# - To share IMAGE between stages the intermediate product will be taged with
# `:ci-$variant` and pushed to docker hub
sudo: false
language: bash
services:
- docker
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
env:
- VARIANT="7.1.13-fpm" OS=jessie LATEST=0.9.6
- VARIANT="7.0.27-fpm" OS=jessie
before_script:
- env | sort
- export IMAGE="claranet/spryker-base"
- export BASE_IMAGE_TAG=${VARIANT}${OS:+-$OS}
- export BASE_IMAGE="php:${BASE_IMAGE_TAG}"
- export VERSION="${TRAVIS_BRANCH:-${TRAVIS_TAG}}"
- export VERSION_TAG="${VERSION}-php-${BASE_IMAGE_TAG}"
- export tagci="ci-${BASE_IMAGE_TAG}"
script:
- ./scripts/build.sh ${BASE_IMAGE}
- docker images
- echo "[INFO] Testing IMAGE $IMAGE:$VERSION_TAG ..."
- docker run -it --rm $IMAGE:$VERSION_TAG php -i
- ./scripts/travis-publish.sh