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

Commit

Permalink
fix(build): move the setting of the branch to the deploy script so PR…
Browse files Browse the repository at this point in the history
…s will run
  • Loading branch information
joshuawilson committed Aug 29, 2018
1 parent 6da1c0d commit 786ff52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions cico_build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ set -ex

install_dependencies

set_branch_to_master

run_unit_tests

build_project
Expand Down
10 changes: 10 additions & 0 deletions cico_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ function release() {
# create_merge_PR
}

function set_branch_to_master() {
# Set the branch as it defaults to the branch 'origin/master'
git checkout master
export GIT_BRANCH=master
# check where we are
git branch -va
git remote -v
}


# This function raises a PR against fabric8-npm-dependencies
function create_merge_PR {
# Fetch latest tags
Expand Down
7 changes: 0 additions & 7 deletions cico_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ install_dependencies() {
cp config/google-chrome.repo /etc/yum.repos.d/google-chrome.repo
yum install -y google-chrome-stable

# Set the branch as it defaults to the branch 'origin/master'
git checkout master
export GIT_BRANCH=master
# check where we are
git branch -va
git remote -v

if [ $? -eq 0 ]; then
echo 'CICO: npm install : OK'
else
Expand Down

0 comments on commit 786ff52

Please sign in to comment.