blob: 6826bc680870279270e190dda3d545d7c3867ab0 [file] [log] [blame]
Ray Milkey9eb58512018-08-15 10:52:12 -07001#!/bin/bash
2
Ray Milkeyf8198ed2019-03-08 23:53:24 +00003# exit on errors
4set -eu -o pipefail
5
6# initialize build environment
7ONOS_ROOT=`pwd`
8. tools/build/envDefaults
9
10# initialize development environment for STC
11export JAVA_HOME=
12. tools/dev/bash_profile
13
14PATH=$PATH:/home/jenkins/bin
15
16# always free the cell when exiting
17function cleanup {
Ray Milkeyb8ec73b2019-03-08 16:43:42 -080018 cell return ${BUILD_TAG}
Ray Milkeyf8198ed2019-03-08 23:53:24 +000019}
20
21trap cleanup EXIT
22
23# grab a cell to run on
Ray Milkeyb8ec73b2019-03-08 16:43:42 -080024cell borrow 60 3+1 ${BUILD_TAG}
Ray Milkeyf8198ed2019-03-08 23:53:24 +000025
26# build onos bits
27bazel build onos
28
29# set up STC parameters
30topo default
31export stcDumpLogs="true"
32export stcColor="false"
33export stcHaltOnError="false"
34export TERM="vt100"
35
Ray Milkey9eb58512018-08-15 10:52:12 -070036# run STC
37stc setup && stc net-trellis-hag-smoke