Skip to content

Commit

Permalink
Build before installing in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
emilpaw committed Sep 12, 2022
1 parent f5a7a1a commit 1c4660c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test-integration/scripts/10-install-jhipster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ if [[ "$JHI_REPO" == *"/generator-jhipster" || "$JHI_GEN_BRANCH" == "local" ]];
cd "$JHI_CLI_PACKAGE_PATH"
git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
npm ci --prod
npm run build
npm install -g "$JHI_CLI_PACKAGE_PATH"

elif [[ "$JHI_GEN_BRANCH" == "release" ]]; then
echo "*** generator-jhipster: use release version"
npm run build
npm install -g generator-jhipster

else
Expand All @@ -70,5 +72,6 @@ else
git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

npm ci --prod
npm run build
npm install -g .
fi

0 comments on commit 1c4660c

Please sign in to comment.