Ray Milkey | cfbc5be | 2018-05-08 09:13:13 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | # exit on errors |
| 4 | set -eu -o pipefail |
| 5 | |
| 6 | # initialize build environment |
| 7 | ONOS_ROOT=`pwd` |
| 8 | . tools/build/envDefaults |
| 9 | |
| 10 | # initialize development environment for STC |
| 11 | export JAVA_HOME= |
| 12 | . tools/dev/bash_profile |
| 13 | |
| 14 | |
| 15 | # always free the cell when exiting |
| 16 | function cleanup { |
| 17 | cell return jenkins-${ONOS_VERSION} |
| 18 | } |
| 19 | |
| 20 | trap cleanup EXIT |
| 21 | |
| 22 | # grab a cell to run on |
| 23 | cell borrow 30 3+1 jenkins-${ONOS_VERSION} |
| 24 | |
| 25 | # build onos bits |
| 26 | onos-buck build onos |
| 27 | |
| 28 | # set up STC parameters |
| 29 | topo default |
| 30 | export stcDumpLogs="true" |
| 31 | export stcColor="false" |
| 32 | export stcHaltOnError="false" |
| 33 | export TERM="vt100" |
| 34 | |
| 35 | # run STC |
| 36 | stc setup && stc net-trellis-hag-smoke |