blob: 6b4cef7942f396d4bb2f83b9931969a2993fe3e9 [file] [log] [blame]
tom5c255702014-09-18 06:57:39 -07001# Environmental defaults for ONOS build, package and test
2
3# Root of the ONOS source tree
Thomas Vachuska045c01d2014-12-04 00:18:06 -08004export ONOS_ROOT=${ONOS_ROOT:-~/onos}
tom5c255702014-09-18 06:57:39 -07005
6# M2 repository and Karaf gold bits
7export M2_REPO=${M2_REPO:-~/.m2/repository}
Thomas Vachuska5630c612015-03-24 12:24:12 -07008export KARAF_VERSION=${KARAF_VERSION:-3.0.3}
Thomas Vachuskab105fd42014-10-20 09:02:27 -07009export KARAF_ZIP=${KARAF_ZIP:-~/Downloads/apache-karaf-$KARAF_VERSION.zip}
10export KARAF_TAR=${KARAF_TAR:-~/Downloads/apache-karaf-$KARAF_VERSION.tar.gz}
tom5c255702014-09-18 06:57:39 -070011export KARAF_DIST=$(basename $KARAF_ZIP .zip)
12
Pavlin Radoslavovaa90bb52014-10-15 16:28:32 -070013# Add ONOS-specific directories to the exectable PATH
14export PATH="$PATH:$ONOS_ROOT/tools/dev/bin:$ONOS_ROOT/tools/test/bin"
15export PATH="$PATH:$ONOS_ROOT/tools/build"
16
tom61e317d2014-10-08 11:18:02 -070017# Fallback build number us derived from from the user name & time
18export BUILD_NUMBER=${BUILD_NUMBER:-$(id -un)~$(date +'%Y/%m/%d@%H:%M')}
19
tom5c255702014-09-18 06:57:39 -070020# ONOS Version and onos.tar.gz staging environment
Brian O'Connorafc2d7d2015-06-05 23:31:25 -070021export ONOS_POM_VERSION="1.3.0-SNAPSHOT"
22export ONOS_VERSION=${ONOS_VERSION:-1.3.0.$BUILD_NUMBER}
Thomas Vachuska734b7492015-03-11 20:42:07 -070023
24# ONOS production bits (onos.tar.gz & onos.zip) staging environment
tom61e317d2014-10-08 11:18:02 -070025export ONOS_BITS=onos-${ONOS_VERSION%~*}
tom5c255702014-09-18 06:57:39 -070026export ONOS_STAGE_ROOT=${ONOS_STAGE_ROOT:-/tmp}
tom5c255702014-09-18 06:57:39 -070027export ONOS_STAGE=$ONOS_STAGE_ROOT/$ONOS_BITS
28export ONOS_TAR=$ONOS_STAGE.tar.gz
Thomas Vachuska045c01d2014-12-04 00:18:06 -080029export ONOS_ZIP=$ONOS_STAGE.zip
tom5c255702014-09-18 06:57:39 -070030
Thomas Vachuska734b7492015-03-11 20:42:07 -070031# ONOS test bits (onos-test.tar.gz) staging environment
32export ONOS_TEST_BITS=onos-test-${ONOS_VERSION%~*}
33export ONOS_TEST_STAGE_ROOT=${ONOS_TEST_STAGE_ROOT:-/tmp}
34export ONOS_TEST_STAGE=$ONOS_STAGE_ROOT/$ONOS_TEST_BITS
35export ONOS_TEST_TAR=$ONOS_TEST_STAGE.tar.gz
36
tom5c255702014-09-18 06:57:39 -070037# Defaults for ONOS testing using remote machines.
Thomas Vachuskaa21bc502014-11-18 10:27:34 -080038# if [ -n "${ONOS_CELL}" -a -f $ONOS_ROOT/tools/test/cells/${ONOS_CELL} ]; then
39# . $ONOS_ROOT/tools/test/cells/${ONOS_CELL}
40# fi
tom5c255702014-09-18 06:57:39 -070041export ONOS_INSTALL_DIR="/opt/onos" # Installation directory on remote
42export OCI="${OCI:-192.168.56.101}" # ONOS Controller Instance
Jonathan Hart716cb212014-11-12 00:33:25 -080043export ONOS_USER="${ONOS_USER:-sdn}" # ONOS user on remote system
Charles M.C. Chandfbc6d82014-12-18 23:11:36 +080044export ONOS_GROUP="${ONOS_GROUP:-sdn}" # ONOS group on remote system
tom5c255702014-09-18 06:57:39 -070045export ONOS_PWD="rocks" # ONOS user password on remote system