forked from erlang/docker-erlang-otp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (35 loc) · 901 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
33
34
35
36
37
38
39
40
language: bash
services: docker
env:
- DIR=master
- DIR=master VARIANT=alpine
- DIR=24
- DIR=24 VARIANT=slim
- DIR=24 VARIANT=alpine
- DIR=24 VARIANT=alpine-lts
- DIR=23
- DIR=23 VARIANT=slim
- DIR=23 VARIANT=alpine
- DIR=23 VARIANT=alpine-lts
- DIR=22
- DIR=22 VARIANT=slim
- DIR=22 VARIANT=alpine
- DIR=21
- DIR=21 VARIANT=slim
- DIR=21 VARIANT=alpine
- DIR=20
- DIR=20 VARIANT=slim
- DIR=20 VARIANT=alpine
- DIR=19
- DIR=19 VARIANT=slim
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- cd "$DIR"
- eval $(awk '/OTP_VERSION=/ { sub(/@/, "-", $2); print $2; exit }' ${VARIANT:-.}/Dockerfile)
- image="erlang:${OTP_VERSION}${VARIANT:+-$VARIANT}"
script:
- docker build --pull -t "$image" "${VARIANT:-.}"
- ~/official-images/test/run.sh "$image"
after_script:
- docker images