Skip to content

Commit

Permalink
Add integration tests for embark/truffle
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Apr 5, 2019
1 parent 755cc6d commit e9d05c6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ env:
- TEST_SUITE=scripts/travis_test_upgradability.sh
- TEST_SUITE=scripts/travis_test_data_dependency.sh
- TEST_SUITE=scripts/travis_test_find_paths.sh
- TEST_SUITE=scripts/travis_test_truffle.sh
- TEST_SUITE=scripts/travis_test_embark.sh
branches:
only:
- master
Expand Down
23 changes: 23 additions & 0 deletions scripts/travis_test_embark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

### Test embark integration

mkdir test_embark
cd test_embark

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
nvm install --lts
nvm use --lts

npm install embark
embark demo
cd embark_demo
npm install
slither . --embark-overwrite-config

if [ $? -eq 3 ]
then
echo "Embark test failed"
exit -1
fi

21 changes: 21 additions & 0 deletions scripts/travis_test_truffle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

### Test truffle integration

mkdir test_truffle
cd test_truffle

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
nvm install --lts
nvm use --lts

npm install truffle
truffle unbox metacoin
slither .

if [ $? -eq 8 ]
then
echo "Truffle test failed"
exit -1
fi

0 comments on commit e9d05c6

Please sign in to comment.