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 |
| 4 | export ONOS_ROOT=${ONOS_ROOT:-~/onos-next} |
| 5 | |
| 6 | # M2 repository and Karaf gold bits |
| 7 | export M2_REPO=${M2_REPO:-~/.m2/repository} |
| 8 | export KARAF_ZIP=${KARAF_ZIP:-~/Downloads/apache-karaf-3.0.1.zip} |
tom | 2d7acb7 | 2014-09-22 22:13:00 -0700 | [diff] [blame] | 9 | export KARAF_TAR=${KARAF_TAR:-~/Downloads/apache-karaf-3.0.1.tar.gz} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 10 | export KARAF_DIST=$(basename $KARAF_ZIP .zip) |
| 11 | |
tom | 61e317d | 2014-10-08 11:18:02 -0700 | [diff] [blame] | 12 | # Fallback build number us derived from from the user name & time |
| 13 | export BUILD_NUMBER=${BUILD_NUMBER:-$(id -un)~$(date +'%Y/%m/%d@%H:%M')} |
| 14 | |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 15 | # ONOS Version and onos.tar.gz staging environment |
tom | 61e317d | 2014-10-08 11:18:02 -0700 | [diff] [blame] | 16 | export ONOS_POM_VERSION="1.0.0-SNAPSHOT" |
| 17 | export ONOS_VERSION=${ONOS_VERSION:-1.0.0.$BUILD_NUMBER} |
| 18 | export ONOS_BITS=onos-${ONOS_VERSION%~*} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 19 | export ONOS_STAGE_ROOT=${ONOS_STAGE_ROOT:-/tmp} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 20 | export ONOS_STAGE=$ONOS_STAGE_ROOT/$ONOS_BITS |
| 21 | export ONOS_TAR=$ONOS_STAGE.tar.gz |
| 22 | |
| 23 | # Defaults for ONOS testing using remote machines. |
| 24 | export ONOS_INSTALL_DIR="/opt/onos" # Installation directory on remote |
| 25 | export OCI="${OCI:-192.168.56.101}" # ONOS Controller Instance |
| 26 | export ONOS_USER="sdn" # ONOS user on remote system |
| 27 | export ONOS_PWD="rocks" # ONOS user password on remote system |