Skip to content

Commit b2ab030

Browse files
committed
Merge pull request docker-library#40 from tianon/travis
Add initial .travis.yml
2 parents c6e8f0d + 39b70b0 commit b2ab030

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: bash
2+
3+
# for secret experimental features ;)
4+
dist: trusty
5+
6+
env:
7+
- VERSION=3.4 VARIANT=
8+
# - VERSION=3.4 VARIANT=slim
9+
# - VERSION=3.4 VARIANT=wheezy
10+
- VERSION=3.3 VARIANT=
11+
# - VERSION=3.3 VARIANT=slim
12+
# - VERSION=3.3 VARIANT=wheey
13+
- VERSION=2.7 VARIANT=
14+
# - VERSION=2.7 VARIANT=slim
15+
# - VERSION=2.7 VARIANT=wheezy
16+
17+
install:
18+
- git clone https://github.com/docker-library/official-images.git ~/official-images
19+
20+
before_script:
21+
- env | sort
22+
- cd "$VERSION"
23+
- image="$(awk '$1 == "FROM" { print $2; exit }' onbuild/Dockerfile)${VARIANT:+-$VARIANT}"
24+
25+
script:
26+
- docker build -t "$image" "${VARIANT:-.}"
27+
- ~/official-images/test/run.sh "$image"
28+
# the "onbuild" variant has to happen with the base variant because it's FROM it
29+
- true && [ "$VARIANT" ] || docker build -t "${image}-onbuild" onbuild
30+
31+
# vim:set et ts=2 sw=2:

0 commit comments

Comments
 (0)