forked from docker-library/golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (52 loc) · 1.48 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
language: bash
services: docker
matrix:
include:
- os: windows
dist: 1803-containers
env: VERSION=1.13-rc VARIANT=windows/windowsservercore-1803
- os: linux
env: VERSION=1.13-rc VARIANT=buster
- os: linux
env: VERSION=1.13-rc VARIANT=alpine3.10
- os: windows
dist: 1803-containers
env: VERSION=1.12 VARIANT=windows/windowsservercore-1803
- os: linux
env: VERSION=1.12 VARIANT=stretch
- os: linux
env: VERSION=1.12 VARIANT=alpine3.10
- os: linux
env: VERSION=1.12 VARIANT=alpine3.9
- os: windows
dist: 1803-containers
env: VERSION=1.11 VARIANT=windows/windowsservercore-1803
- os: linux
env: VERSION=1.11 VARIANT=stretch
- os: linux
env: VERSION=1.11 VARIANT=alpine3.10
- os: linux
env: VERSION=1.11 VARIANT=alpine3.9
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- cd "$VERSION${VARIANT:+/$VARIANT}"
- slash='/'; image="golang:$VERSION${VARIANT:+-${VARIANT//$slash/-}}"
script:
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
if [ "$TRAVIS_OS_NAME" = 'windows' ]; then
# TODO make the tests run successfully on Windows too!
docker run --rm "$image" go version
docker run --rm "$image" git --version
else
~/official-images/test/run.sh "$image"
fi
)
after_script:
- docker images
# vim:set et ts=2 sw=2: