forked from c0b/docker-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (27 loc) · 854 Bytes
/
.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
language: bash
services: docker
env:
- DIR=master
- DIR=1.7
- DIR=1.7 VARIANT=slim
- DIR=1.7 VARIANT=alpine
- DIR=1.6
- DIR=1.6 VARIANT=slim
- DIR=1.6 VARIANT=alpine
- DIR=1.6 VARIANT=otp-21
- DIR=1.6 VARIANT=otp-21-alpine
- DIR=1.5
- DIR=1.5 VARIANT=slim
- DIR=1.5 VARIANT=alpine
install:
- curl -fsSL https://github.com/docker-library/official-images/archive/master.tar.gz | {
mkdir -vp ./official-images/;
tar -C ./official-images/ --strip-components=1 -zxvv official-images-master/test/; }
before_script:
- eval $(awk '/ELIXIR_VERSION=/ { sub(/@/, "-", $2); print $2; exit }' ${DIR}/${VARIANT}/Dockerfile)
- image="elixir:${ELIXIR_VERSION#v}${VARIANT:+-$VARIANT}"
script:
- docker build --pull -t "$image" "${DIR}/${VARIANT}"
- ./official-images/test/run.sh "$image"
after_script:
- docker images