From 36707efe9160089d9ca474a1cdce3aef249a1219 Mon Sep 17 00:00:00 2001 From: Josselin Date: Fri, 5 Apr 2019 18:28:46 +0100 Subject: [PATCH] Fix travis (close #197) --- scripts/travis_test_embark.sh | 2 ++ scripts/travis_test_truffle.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/travis_test_embark.sh b/scripts/travis_test_embark.sh index 2da1190912..1e9d504c93 100755 --- a/scripts/travis_test_embark.sh +++ b/scripts/travis_test_embark.sh @@ -6,8 +6,10 @@ mkdir test_embark cd test_embark curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash +source ~/.nvm/nvm.sh nvm install --lts nvm use --lts +npm --version npm install -g embark embark demo diff --git a/scripts/travis_test_truffle.sh b/scripts/travis_test_truffle.sh index ab46a32810..05ea1de7e1 100755 --- a/scripts/travis_test_truffle.sh +++ b/scripts/travis_test_truffle.sh @@ -6,6 +6,7 @@ mkdir test_truffle cd test_truffle curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash +source ~/.nvm/nvm.sh nvm install --lts nvm use --lts @@ -13,7 +14,7 @@ npm install -g truffle truffle unbox metacoin slither . -if [ $? -eq 8 ] +if [ $? -eq 7 ] then exit 0 fi