From 835d1f38e7f164393494191a5a58b29c8c9a88ac Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 31 May 2016 06:53:40 +0000 Subject: test: test go example embeded in document Signed-off-by: ISHIDA Wataru --- test/scenario_test/ci-scripts/travis-build-script.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/scenario_test/ci-scripts/travis-build-script.sh') diff --git a/test/scenario_test/ci-scripts/travis-build-script.sh b/test/scenario_test/ci-scripts/travis-build-script.sh index ef436303..9a7a416d 100644 --- a/test/scenario_test/ci-scripts/travis-build-script.sh +++ b/test/scenario_test/ci-scripts/travis-build-script.sh @@ -2,10 +2,14 @@ SCENARIO=$1 echo "travis-build-script.sh" +export GOBGP=`pwd` + if [ "$SCENARIO" != "true" ]; then echo "execute unit test." go version go test -v ./... + [ "$?" != 0 ] && exit "$?" + python $GOBGP/test/scenario_test/ci-scripts/build_embeded_go.py $GOBGP/docs/sources/lib.md exit $? fi @@ -14,7 +18,6 @@ docker version echo "" export GOBGP_IMAGE=gobgp -export GOBGP=`pwd` sudo apt-get -q update sudo apt-get -q -y install iputils-arping bridge-utils lv -- cgit v1.2.3