blob: 130abcd50e4c9ea8e1e2d643c0f03d9e6783b73c [file] [log] [blame]
Ray Milkey3aa8af52018-03-09 09:10:08 -08001#!/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
Ray Milkey8c67f302018-03-09 14:23:49 -080011export JAVA_HOME=
Ray Milkey3aa8af52018-03-09 09:10:08 -080012. tools/dev/bash_profile
13
14
15# always free the cell when exiting
16function cleanup {
Ray Milkey9ac211e2018-04-16 13:03:37 -070017 cell return jenkins-${ONOS_VERSION}
Ray Milkey3aa8af52018-03-09 09:10:08 -080018}
19
20trap cleanup EXIT
21
22# grab a cell to run on
Ray Milkey9ac211e2018-04-16 13:03:37 -070023cell borrow 30 3+1 jenkins-${ONOS_VERSION}
Ray Milkey3aa8af52018-03-09 09:10:08 -080024
25# build onos bits
26onos-buck build onos
27
28# set up STC parameters
29topo default
Ray Milkey6d4b1852018-04-06 08:43:48 -070030export stcDumpLogs="true"
Ray Milkey3aa8af52018-03-09 09:10:08 -080031export stcColor="false"
Ray Milkey6d4b1852018-04-06 08:43:48 -070032export stcHaltOnError="false"
33export TERM="vt100"
Ray Milkey3aa8af52018-03-09 09:10:08 -080034
35# run STC
36stc