blob: aed834fa0acf92f8117e4ba205413ec8a55c9ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|