aboutsummaryrefslogtreecommitdiffstats
path: root/dist/linux/create.sh
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2017-12-12 21:55:52 +0100
committertgingold <tgingold@users.noreply.github.com>2017-12-16 20:29:52 +0100
commit5ca9bee36d81c34d16711efd4910c4ef3278fb3e (patch)
tree8aa13d5febcb243579550abd7504fc3c5bf9a7a9 /dist/linux/create.sh
parente89bb574675e6225110a654f712b8ea916609cc2 (diff)
downloadghdl-5ca9bee36d81c34d16711efd4910c4ef3278fb3e.tar.gz
ghdl-5ca9bee36d81c34d16711efd4910c4ef3278fb3e.tar.bz2
ghdl-5ca9bee36d81c34d16711efd4910c4ef3278fb3e.zip
use travis stages, use docker multistage builds
Diffstat (limited to 'dist/linux/create.sh')
-rw-r--r--dist/linux/create.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/dist/linux/create.sh b/dist/linux/create.sh
new file mode 100644
index 000000000..aed834fa0
--- /dev/null
+++ b/dist/linux/create.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+# This script is executed in the travis-ci environment.
+
+set -e
+
+. dist/linux/travis-utils.sh
+. dist/ansi_color.sh
+#disable_color
+
+scriptdir=$(dirname $0)
+
+for d in build run; do
+ currentdir="${scriptdir}/docker/$d"
+ for f in `ls $currentdir`; do
+ for tag in `grep -oP "FROM.*AS \K.*" ${currentdir}/$f`; do
+ echo "travis_fold:start:${f}-$tag"
+ travis_time_start
+ printf "$ANSI_BLUE[DOCKER build] ${d} : ${f} - ${tag}$ANSI_NOCOLOR\n"
+ docker build -t ghdl/${d}:${f}-${tag} --target $tag - < ${currentdir}/$f
+ travis_time_finish
+ echo "travis_fold:end:${f}-$tag"
+ done
+ done
+done