-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from tianon/travis
Add initial ".travis.yml"
- Loading branch information
Showing
2 changed files
with
42 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,41 @@ | ||
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 | ||
- cd "$VARIANT" | ||
- image="irssi:$VARIANT" | ||
- | | ||
( | ||
set -Eeuo pipefail | ||
set -x | ||
if [ -n "${ARCH:-}" ]; then | ||
from="$(awk '$1 == toupper("FROM") { print $2 }' 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ RUN set -x \ | |
# gpg: key DDBEF0E1: public key "The Irssi project <[email protected]>" imported | ||
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1 \ | ||
&& gpg --batch --verify /tmp/irssi.tar.xz.asc /tmp/irssi.tar.xz \ | ||
&& gpgconf --kill all \ | ||
&& rm -rf "$GNUPGHOME" /tmp/irssi.tar.xz.asc \ | ||
&& mkdir -p /usr/src/irssi \ | ||
&& tar -xf /tmp/irssi.tar.xz -C /usr/src/irssi --strip-components 1 \ | ||
|