"docker/vscode:/vscode.git/clone" did not exist on "a1fe08a8ca28617bbf115bb4106fa3804da2d4b6"
Commit 28bd85d1 authored by Asim Shankar's avatar Asim Shankar
Browse files

Sanity test: Make sure the examples compile.

parent 0652d866
...@@ -10,3 +10,6 @@ docker run -it --rm -v ${PWD}/..:/examples -w /examples java-tensorflow ...@@ -10,3 +10,6 @@ docker run -it --rm -v ${PWD}/..:/examples -w /examples java-tensorflow
That second command will pop you into a shell which has all That second command will pop you into a shell which has all
the dependencies required to execute the scripts and Java the dependencies required to execute the scripts and Java
examples. examples.
The script `sanity_test.sh` builds this container and runs a compilation
check on all the maven projects.
#!/bin/bash
#
# Silly sanity test
DIR="$(cd "$(dirname "$0")" && pwd -P)"
docker build -t java-tensorflow .
docker run -it --rm -v ${PWD}/..:/examples java-tensorflow bash /examples/docker/test_inside_container.sh
#!/bin/bash
set -ex
cd /examples/label_image
mvn compile
cd /examples/object_detection
mvn compile
cd /examples/training
mvn compile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment