Skip to content

Commit

Permalink
Merge CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwinch committed Jun 8, 2022
1 parent d41367a commit 680082d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
25 changes: 25 additions & 0 deletions mobile-save-for-later/script/ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,29 @@

set -e

nvm_available() {
type -t nvm > /dev/null
}

source_nvm() {
if ! nvm_available; then
[ -e "/usr/local/opt/nvm/nvm.sh" ] && source /usr/local/opt/nvm/nvm.sh
fi
if ! nvm_available; then
[ -e "$HOME/.nvm/nvm.sh" ] && source "$HOME/.nvm/nvm.sh"
fi
}

source_nvm
nvm install
nvm use

(
cd cdk
npm ci
npm run lint
npm test
npm run synth
)

sbt "project mobile-save-for-later; clean; compile; riffRaffUpload"
28 changes: 0 additions & 28 deletions script/ci

This file was deleted.

0 comments on commit 680082d

Please sign in to comment.