blob: ae6bb0223cfee2f7f2cbc3309803eba296880649 [file] [log] [blame]
Ray Milkeycfbc5be2018-05-08 09:13:13 -07001#!/bin/bash
2
3# 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
14
15# always free the cell when exiting
16function cleanup {
17 cell return jenkins-${ONOS_VERSION}
18}
19
20trap cleanup EXIT
21
22# grab a cell to run on
23cell borrow 30 3+1 jenkins-${ONOS_VERSION}
24
25# build onos bits
26onos-buck build onos
27
28# set up STC parameters
29topo default
30export stcDumpLogs="true"
31export stcColor="false"
32export stcHaltOnError="false"
33export TERM="vt100"
34
35# run STC
36stc setup && stc net-trellis-hag-smoke