Unset ARVADOS_ variable from the environment before running tests. no issue #
[arvados.git] / jenkins / run-docker-tests.sh
1 #!/bin/bash
2
3 EXITCODE=0
4
5 COLUMNS=80
6
7 title () {
8   printf "\n%*s\n\n" $(((${#title}+$COLUMNS)/2)) "********** $1 **********"
9 }
10
11 echo $WORKSPACE
12
13 # DOCKER
14 title "Starting docker build"
15
16 # clean up the docker build environment
17 cd "$WORKSPACE"
18 cd docker
19 ./build.sh realclean
20
21 rm -f config.yml
22
23 # Get test config.yml file
24 cp $HOME/docker/config.yml .
25
26 ./build.sh
27
28 ECODE=$?
29
30 if [[ "$ECODE" != "0" ]]; then
31   title "!!!!!! docker BUILD FAILED !!!!!!"
32   EXITCODE=$(($EXITCODE + $ECODE))
33 fi
34
35 title "docker build complete"
36
37 exit $EXITCODE