-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This does a build test of both Debian and Alpine on amd64 and i386 (which is a very rough "does multi-arch work?" smoke test). This also adds "gpgconf --kill all" on Alpine and pgp-happy-eyeballs in Travis to help cut down on GPG-related failures.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
language: bash | ||
services: docker | ||
|
||
env: | ||
- VARIANT=debian | ||
- VARIANT=alpine | ||
- VARIANT=debian ARCH=i386 | ||
- VARIANT=alpine ARCH=i386 | ||
|
||
install: | ||
- git clone https://github.com/docker-library/official-images.git ~/official-images | ||
|
||
before_script: | ||
- env | sort | ||
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash | ||
- image="irssi:$VARIANT" | ||
- | | ||
( | ||
set -Eeuo pipefail | ||
set -x | ||
if [ -n "$ARCH" ]; then | ||
from="$(awk '$1 == toupper("FROM") { print $2 }' "$VARIANT/Dockerfile")" | ||
docker pull "$ARCH/$from" | ||
docker tag "$ARCH/$from" "$from" | ||
fi | ||
) | ||
script: | ||
- | | ||
( | ||
set -Eeuo pipefail | ||
set -x | ||
docker build -t "$image" . | ||
~/official-images/test/run.sh "$image" | ||
) | ||
after_script: | ||
- docker images | ||
|
||
# vim:set et ts=2 sw=2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters