Skip to content

Commit 28bd85d

Browse files
committed
Sanity test: Make sure the examples compile.
1 parent 0652d86 commit 28bd85d

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

samples/languages/java/docker/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ docker run -it --rm -v ${PWD}/..:/examples -w /examples java-tensorflow
1010
That second command will pop you into a shell which has all
1111
the dependencies required to execute the scripts and Java
1212
examples.
13+
14+
The script `sanity_test.sh` builds this container and runs a compilation
15+
check on all the maven projects.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
#
3+
# Silly sanity test
4+
DIR="$(cd "$(dirname "$0")" && pwd -P)"
5+
6+
docker build -t java-tensorflow .
7+
docker run -it --rm -v ${PWD}/..:/examples java-tensorflow bash /examples/docker/test_inside_container.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
cd /examples/label_image
6+
mvn compile
7+
8+
cd /examples/object_detection
9+
mvn compile
10+
11+
cd /examples/training
12+
mvn compile

0 commit comments

Comments
 (0)