Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
chore(deploy) Adjust deploy scripts for alpha/beta
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <jeromesimeon@me.com>
  • Loading branch information
jeromesimeon committed Oct 18, 2019
1 parent 2ce9056 commit f98ffb3
Show file tree
Hide file tree
Showing 15 changed files with 214 additions and 1,433 deletions.
9 changes: 3 additions & 6 deletions .travis/base.sh
Expand Up @@ -27,7 +27,6 @@ function _exit(){
function _abortBuild(){
echo "ABORT_BUILD=true" > ${DIR}/build.cfg
echo "ABORT_CODE=$1" >> ${DIR}/build.cfg
echo "BUILD_FOCUS=${BUILD_FOCUS}" >> ${DIR}/build.cfg
echo "BUILD_RELEASE=${BUILD_RELEASE}" >> ${DIR}/build.cfg
}

Expand All @@ -37,21 +36,19 @@ if [ ! -f ${DIR}/build.cfg ]; then
echo "ABORT_BUILD=false" > ${DIR}/build.cfg
echo "ABORT_CODE=0" >> ${DIR}/build.cfg
## determine the build type here
if [ -z "${TRAVIS_TAG}" ] || [ "${TRAVIS_BRANCH}" != "master" ]; then
if [[ -z "${TRAVIS_TAG}" ]] || [[ "${TRAVIS_BRANCH}" != "master" ]]; then
BUILD_RELEASE="unstable"
BUILD_FOCUS="latest"
elif [[ "${TRAVIS_TAG}" == *"-alpha"* ]] || [[ "${TRAVIS_TAG}" == *"-beta"* ]]; then
BUILD_RELEASE="alpha"
else
BUILD_RELEASE="stable"
BUILD_FOCUS="latest"
fi

echo "BUILD_FOCUS=${BUILD_FOCUS}" >> ${DIR}/build.cfg
echo "BUILD_RELEASE=${BUILD_RELEASE}" >> ${DIR}/build.cfg
fi

source ${DIR}/build.cfg

echo "--I-- Build focus is ${BUILD_FOCUS}"
echo "--I-- Build release is ${BUILD_RELEASE}"

if [ "${ABORT_BUILD}" == "true" ]; then
Expand Down
15 changes: 0 additions & 15 deletions .travis/build.cfg

This file was deleted.

12 changes: 7 additions & 5 deletions .travis/deploy.sh
Expand Up @@ -55,14 +55,16 @@ if [[ "${BUILD_RELEASE}" == "unstable" ]]; then
npm run pkgstamp

TAG="unstable"
elif [[ "${BUILD_RELEASE}" == "stable" ]]; then
elif [[ "${BUILD_RELEASE}" == "alpha" ]]; then
TAG="unstable"
elif [[ "${BUILD_RELEASE}" == "stable" ]]; then
TAG="latest"
else
_exit "Unknown build focus" 1
else
_exit "Unknown build release" 1
fi

## Stable releases only; both latest and next then clean up git, and bump version number
if [[ "${BUILD_RELEASE}" = "stable" ]]; then
## Stable or alpha/beta releases only; both latest and next then clean up git, and bump version number
if [[ "${BUILD_RELEASE}" = "stable" ]] || [[ "${BUILD_RELEASE}" = "alpha" ]]; then

# Configure the Git repository and clean any untracked and unignored build files.
git config user.name "${GH_USER_NAME}"
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Expand Up @@ -56,9 +56,6 @@ npm-setup:
@echo "[Ergo] "
lerna bootstrap

publish:
lerna bootstrap && lerna publish --force-publish=*

## Documentation
documentation:
$(MAKE) -C mechanization documentation
Expand Down
2 changes: 1 addition & 1 deletion mechanization/Version.v
Expand Up @@ -17,7 +17,7 @@
Require Import String.

Section Version.
Definition ergo_version := "0.20.0-alpha.2"%string.
Definition ergo_version := "0.20.0-beta.1"%string.

End Version.

0 comments on commit f98ffb3

Please sign in to comment.