Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Commit

Permalink
CI: Update ci.sh to update and make manifest when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
margau committed Apr 29, 2020
1 parent 6be3657 commit e24aca9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ echo "Checking out ${GLUON_CHECKOUT}"
git checkout "${GLUON_CHECKOUT}"
git pull "${GLUON_REMOTE}" "${GLUON_CHECKOUT}"

update() {
make update
}

build() {
echo "Preparing build..."

Expand All @@ -41,8 +45,10 @@ build() {
}

build_all() {
update
SELECTED_TARGETS=$(make list-targets)
build
manifest
}

manifest() {
Expand All @@ -57,9 +63,8 @@ manifest() {
make manifest $VERBOSE
}

if [[ $1 =~ ^(build|manifest|build_all)$ ]]; then
make update
"$@"
if [[ $1 =~ ^(build|manifest|build_all|update)$ ]]; then
"$@"
else
echo "Invalid subcommand $1" >&2
exit 1
Expand Down

0 comments on commit e24aca9

Please sign in to comment.