-
Notifications
You must be signed in to change notification settings - Fork 74
/
.travis.yml
39 lines (34 loc) · 1.03 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
language: bash
services: docker
env:
- DIR=master
- DIR=1.10
- DIR=1.10 VARIANT=slim
- DIR=1.10 VARIANT=alpine
- DIR=1.9
- DIR=1.9 VARIANT=slim
- DIR=1.9 VARIANT=alpine
- DIR=1.8
- DIR=1.8 VARIANT=slim
- DIR=1.8 VARIANT=alpine
- DIR=1.8 VARIANT=otp-22
- DIR=1.8 VARIANT=otp-22-alpine
- DIR=1.8 VARIANT=otp-21.2
- DIR=1.8 VARIANT=otp-21.2-alpine
- DIR=1.7
- DIR=1.7 VARIANT=slim
- DIR=1.7 VARIANT=alpine
- DIR=1.7 VARIANT=otp-21.2
- DIR=1.7 VARIANT=otp-21.2-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