Skip to content

Commit

Permalink
feat(build): issues/97 custom branches for qe integration
Browse files Browse the repository at this point in the history
* master branch equates production
* ci branch equates ci and qa related beta branches
  • Loading branch information
cdcabrera committed Sep 5, 2019
1 parent 67137a6 commit 450fe09
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis/custom_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
#
#
# main()
#
{
set -e
set -x

if [ "${TRAVIS_BRANCH}" = "ci" ]; then
for env in ci qa
do
echo "PUSHING ${env}-beta"
rm -rf ./dist/.git
.travis/release.sh "${env}-beta"
done
fi

if [ "${TRAVIS_BRANCH}" = "master" ]; then
rm -rf ./build/.git

echo "PUSHING prod-beta"
.travis/release.sh "prod-beta"

echo "PUSHING prod-stable"
.travis/release.sh "prod-stable"
fi
}

0 comments on commit 450fe09

Please sign in to comment.