blob: bfe9366699262b18200a4b5b0316b419eec63264 [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
4export ONOS_ROOT=${ONOS_ROOT:-~/onos-next}
5
6# M2 repository and Karaf gold bits
7export M2_REPO=${M2_REPO:-~/.m2/repository}
Thomas Vachuska9c7af622014-11-03 16:20:26 -08008export KARAF_VERSION=${KARAF_VERSION:-3.0.2}
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
tom61e317d2014-10-08 11:18:02 -070021export ONOS_POM_VERSION="1.0.0-SNAPSHOT"
22export ONOS_VERSION=${ONOS_VERSION:-1.0.0.$BUILD_NUMBER}
23export ONOS_BITS=onos-${ONOS_VERSION%~*}
tom5c255702014-09-18 06:57:39 -070024export ONOS_STAGE_ROOT=${ONOS_STAGE_ROOT:-/tmp}
tom5c255702014-09-18 06:57:39 -070025export ONOS_STAGE=$ONOS_STAGE_ROOT/$ONOS_BITS
26export ONOS_TAR=$ONOS_STAGE.tar.gz
27
28# Defaults for ONOS testing using remote machines.
Pavlin Radoslavov93617212014-10-16 09:54:04 -070029if [ -n "${ONOS_CELL}" -a -f $ONOS_ROOT/tools/test/cells/${ONOS_CELL} ]; then
30 . $ONOS_ROOT/tools/test/cells/${ONOS_CELL}
31fi
tom5c255702014-09-18 06:57:39 -070032export ONOS_INSTALL_DIR="/opt/onos" # Installation directory on remote
33export OCI="${OCI:-192.168.56.101}" # ONOS Controller Instance
34export ONOS_USER="sdn" # ONOS user on remote system
35export ONOS_PWD="rocks" # ONOS user password on remote system