Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Give Matthew the penguins (remove hardcoded v0.17 test)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Stone <[email protected]>
  • Loading branch information
Simon Stone committed Mar 5, 2018
1 parent 219b20c commit 6c6e999
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .travis/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,23 @@ if [ ! -f ${DIR}/build.cfg ]; then
echo "ABORT_CODE=0" >> ${DIR}/build.cfg
## regexp to match the latest version
LATEST_REGEXP=v0\.16\.\([0-9]{1,2}\|x\)
NEXT_REGEXP=v0\.17\.\([0-9]{1,2}\|x\)

## determine the build type here
if [ -z "${TRAVIS_TAG}" ]; then
if [ "${TRAVIS_BRANCH}" = "master" ]; then
BUILD_FOCUS="next"
BUILD_RELEASE="unstable"
elif [[ "${TRAVIS_BRANCH}" =~ ${LATEST_REGEXP} ]]; then
if [[ "${TRAVIS_BRANCH}" =~ ${LATEST_REGEXP} ]]; then
BUILD_FOCUS="latest"
BUILD_RELEASE="unstable"
elif [[ "${TRAVIS_REPO_SLUG}" != hyperledger* ]]; then
# personal repo build --> assuming this is next unstable
else
BUILD_FOCUS="next"
BUILD_RELEASE="unstable"
else
_exit "unable to determine build focus branch=${TRAVIS_BRANCH} tag=${TRAVIS_TAG}" 1
fi
else
if [[ "${TRAVIS_BRANCH}" =~ ${NEXT_REGEXP} ]]; then
BUILD_FOCUS="next"
BUILD_RELEASE="stable"
elif [[ "${TRAVIS_BRANCH}" =~ ${LATEST_REGEXP} ]]; then
if [[ "${TRAVIS_BRANCH}" =~ ${LATEST_REGEXP} ]]; then
BUILD_FOCUS="latest"
BUILD_RELEASE="stable"
else
_exit "unable to determine build focus branch=${TRAVIS_BRANCH} tag=${TRAVIS_TAG}" 1
else
BUILD_FOCUS="next"
BUILD_RELEASE="stable"
fi
fi

Expand Down

0 comments on commit 6c6e999

Please sign in to comment.