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 @@
# Default branch to use when no explicit project branch is set. If not set, then
# it defaults to "master".
default="${defaultBranch-"master"}"
default="${defaultBranch-"release"}"
# Array of project names.
project_arr=(
......@@ -21,6 +21,7 @@ project_arr=(
gateway
user-discovery-bot
registration
client-registrar
)
# Array of each project's branch. If a branch is not explicitly set via an
......@@ -38,12 +39,11 @@ update() {
git clean -ffdx
git checkout "$1"
git pull
glide cache-clear && glide update
}
for ((i=0; i<${#project_arr[@]}; ++i)); do
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]}"
go test ./...
popd || exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment