diff --git a/mobile-save-for-later/script/ci b/mobile-save-for-later/script/ci index a5a930da..bd67e02f 100755 --- a/mobile-save-for-later/script/ci +++ b/mobile-save-for-later/script/ci @@ -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" diff --git a/script/ci b/script/ci deleted file mode 100755 index db1ce88b..00000000 --- a/script/ci +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -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 -) \ No newline at end of file