mirror of
https://github.com/tensorflow/haskell.git
synced 2024-12-25 02:59:46 +01:00
72631cb9f3
* Download protoc and libtensorflow instead of running bazel. * Explicitly set permissions of protoc.
12 lines
379 B
Bash
Executable file
12 lines
379 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Builds a test image and runs the tests inside.
|
|
|
|
set -eu -o pipefail
|
|
|
|
STACK_RESOLVER=${STACK_RESOLVER:-lts-6.2}
|
|
IMAGE_NAME=tensorflow/haskell/ci_build:$STACK_RESOLVER
|
|
|
|
git submodule update
|
|
docker build --build-arg STACK_RESOLVER=$STACK_RESOLVER -t $IMAGE_NAME -f ci_build/Dockerfile .
|
|
docker run $IMAGE_NAME stack build --resolver=$STACK_RESOLVER --pedantic --test
|