2016-10-29 01:14:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Builds a test image and runs the tests inside.
|
|
|
|
|
2018-01-16 22:16:41 +01:00
|
|
|
set -eux -o pipefail
|
2016-10-29 01:14:26 +02:00
|
|
|
|
2017-05-10 05:49:51 +02:00
|
|
|
IMAGE_NAME=tensorflow/haskell/ci_build:lts8
|
2016-10-29 01:14:26 +02:00
|
|
|
|
2018-01-16 22:16:41 +01:00
|
|
|
# Make sure we are in the root directory of the repositiory.
|
|
|
|
cd "$( dirname "$0" )"/..
|
|
|
|
|
|
|
|
git submodule update --init --recursive
|
2017-05-10 05:49:51 +02:00
|
|
|
docker build -t $IMAGE_NAME -f ci_build/Dockerfile .
|
|
|
|
docker run $IMAGE_NAME stack build --pedantic --test
|