From bc15709cb4bb4b41d232392bc4db6ca610a1234d Mon Sep 17 00:00:00 2001 From: fkm3 Date: Tue, 16 Jan 2018 16:16:41 -0500 Subject: [PATCH] Update outer_launch_tests.sh to support new internal CI (#173) --- ci_build/outer_launch_tests.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci_build/outer_launch_tests.sh b/ci_build/outer_launch_tests.sh index a32f887..b79b495 100755 --- a/ci_build/outer_launch_tests.sh +++ b/ci_build/outer_launch_tests.sh @@ -2,10 +2,13 @@ # Builds a test image and runs the tests inside. -set -eu -o pipefail +set -eux -o pipefail IMAGE_NAME=tensorflow/haskell/ci_build:lts8 -git submodule update +# Make sure we are in the root directory of the repositiory. +cd "$( dirname "$0" )"/.. + +git submodule update --init --recursive docker build -t $IMAGE_NAME -f ci_build/Dockerfile . docker run $IMAGE_NAME stack build --pedantic --test