blob: ac7dab9c02f6f8f67a3782badca796ce4f858a24 [file] [log] [blame]
Ray Milkey28091e22019-02-21 16:03:26 -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
11export JAVA_HOME=
12. tools/dev/bash_profile
13
14PATH=$PATH:/home/jenkins/bin
15
16# always free the cell when exiting
17function cleanup {
18 cell return jenkins-app-all-${ONOS_VERSION}
19}
20
21trap cleanup EXIT
22
23# grab a cell to run on
Ray Milkey0b27fee2019-02-26 10:33:20 -080024cell borrow 120 1+1 jenkins-app-all-${ONOS_VERSION}
Ray Milkey28091e22019-02-21 16:03:26 -080025
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
36# run STC
37stc setup && stc app-activate-all