tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 1 | # Environmental defaults for ONOS build, package and test |
| 2 | |
| 3 | # Root of the ONOS source tree |
Thomas Vachuska | 045c01d | 2014-12-04 00:18:06 -0800 | [diff] [blame] | 4 | export ONOS_ROOT=${ONOS_ROOT:-~/onos} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 5 | |
| 6 | # M2 repository and Karaf gold bits |
| 7 | export M2_REPO=${M2_REPO:-~/.m2/repository} |
Thomas Vachuska | 5630c61 | 2015-03-24 12:24:12 -0700 | [diff] [blame] | 8 | export KARAF_VERSION=${KARAF_VERSION:-3.0.3} |
Thomas Vachuska | b105fd4 | 2014-10-20 09:02:27 -0700 | [diff] [blame] | 9 | export KARAF_ZIP=${KARAF_ZIP:-~/Downloads/apache-karaf-$KARAF_VERSION.zip} |
| 10 | export KARAF_TAR=${KARAF_TAR:-~/Downloads/apache-karaf-$KARAF_VERSION.tar.gz} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 11 | export KARAF_DIST=$(basename $KARAF_ZIP .zip) |
| 12 | |
Pavlin Radoslavov | aa90bb5 | 2014-10-15 16:28:32 -0700 | [diff] [blame] | 13 | # Add ONOS-specific directories to the exectable PATH |
| 14 | export PATH="$PATH:$ONOS_ROOT/tools/dev/bin:$ONOS_ROOT/tools/test/bin" |
| 15 | export PATH="$PATH:$ONOS_ROOT/tools/build" |
| 16 | |
tom | 61e317d | 2014-10-08 11:18:02 -0700 | [diff] [blame] | 17 | # Fallback build number us derived from from the user name & time |
| 18 | export BUILD_NUMBER=${BUILD_NUMBER:-$(id -un)~$(date +'%Y/%m/%d@%H:%M')} |
| 19 | |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 20 | # ONOS Version and onos.tar.gz staging environment |
Brian O'Connor | a78abfc | 2015-06-05 22:40:03 -0700 | [diff] [blame^] | 21 | export ONOS_POM_VERSION="1.2.0" |
Brian O'Connor | 3350390 | 2015-06-01 17:08:05 -0700 | [diff] [blame] | 22 | export ONOS_VERSION=${ONOS_VERSION:-1.2.0.$BUILD_NUMBER} |
Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 23 | |
| 24 | # ONOS production bits (onos.tar.gz & onos.zip) staging environment |
tom | 61e317d | 2014-10-08 11:18:02 -0700 | [diff] [blame] | 25 | export ONOS_BITS=onos-${ONOS_VERSION%~*} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 26 | export ONOS_STAGE_ROOT=${ONOS_STAGE_ROOT:-/tmp} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 27 | export ONOS_STAGE=$ONOS_STAGE_ROOT/$ONOS_BITS |
| 28 | export ONOS_TAR=$ONOS_STAGE.tar.gz |
Thomas Vachuska | 045c01d | 2014-12-04 00:18:06 -0800 | [diff] [blame] | 29 | export ONOS_ZIP=$ONOS_STAGE.zip |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 30 | |
Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 31 | # ONOS test bits (onos-test.tar.gz) staging environment |
| 32 | export ONOS_TEST_BITS=onos-test-${ONOS_VERSION%~*} |
| 33 | export ONOS_TEST_STAGE_ROOT=${ONOS_TEST_STAGE_ROOT:-/tmp} |
| 34 | export ONOS_TEST_STAGE=$ONOS_STAGE_ROOT/$ONOS_TEST_BITS |
| 35 | export ONOS_TEST_TAR=$ONOS_TEST_STAGE.tar.gz |
| 36 | |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 37 | # Defaults for ONOS testing using remote machines. |
Thomas Vachuska | a21bc50 | 2014-11-18 10:27:34 -0800 | [diff] [blame] | 38 | # if [ -n "${ONOS_CELL}" -a -f $ONOS_ROOT/tools/test/cells/${ONOS_CELL} ]; then |
| 39 | # . $ONOS_ROOT/tools/test/cells/${ONOS_CELL} |
| 40 | # fi |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 41 | export ONOS_INSTALL_DIR="/opt/onos" # Installation directory on remote |
| 42 | export OCI="${OCI:-192.168.56.101}" # ONOS Controller Instance |
Jonathan Hart | 716cb21 | 2014-11-12 00:33:25 -0800 | [diff] [blame] | 43 | export ONOS_USER="${ONOS_USER:-sdn}" # ONOS user on remote system |
Charles M.C. Chan | dfbc6d8 | 2014-12-18 23:11:36 +0800 | [diff] [blame] | 44 | export ONOS_GROUP="${ONOS_GROUP:-sdn}" # ONOS group on remote system |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 45 | export ONOS_PWD="rocks" # ONOS user password on remote system |