Skip to content
Snippets Groups Projects
Commit d3d88f81 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix update code to work with download and build scripts

parent d95e91c9
No related branches found
No related tags found
2 merge requests!68Master merge,!34Merge release into GPU project branch
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# Default branch to use when no explicit project branch is set. If not set, then # Default branch to use when no explicit project branch is set. If not set, then
# it defaults to "master". # it defaults to "master".
default="${defaultBranch-"master"}" default="${defaultBranch-"release"}"
# Array of project names. # Array of project names.
project_arr=( project_arr=(
...@@ -21,6 +21,7 @@ project_arr=( ...@@ -21,6 +21,7 @@ project_arr=(
gateway gateway
user-discovery-bot user-discovery-bot
registration registration
client-registrar
) )
# Array of each project's branch. If a branch is not explicitly set via an # Array of each project's branch. If a branch is not explicitly set via an
...@@ -38,12 +39,11 @@ update() { ...@@ -38,12 +39,11 @@ update() {
git clean -ffdx git clean -ffdx
git checkout "$1" git checkout "$1"
git pull git pull
glide cache-clear && glide update
} }
for ((i=0; i<${#project_arr[@]}; ++i)); do for ((i=0; i<${#project_arr[@]}; ++i)); do
printf "\n%s\n" "${project_arr[i]}" printf "\n%s\n" "${project_arr[i]}"
pushd "$GOPATH"/src/gitlab.com/elixxir/client || exit pushd bin/gitlab.com/elixxir/client || exit
update "${branch_arr[i]}" update "${branch_arr[i]}"
go test ./... go test ./...
popd || exit popd || exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment