-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,042 additions
and
1,034 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ language: node_js | |
node_js: | ||
- "9" | ||
env: | ||
- NODE_ENV=development ARTIFACTS_DIR=$TRAVIS_BUILD_DIR/artifacts CUCUMBER_ARTIFACTS_DIR=$ARTIFACTS_DIR/cucumber | ||
- NODE_ENV=development ARTIFACTS_DIR=$TRAVIS_BUILD_DIR/artifacts CUCUMBER_ARTIFACTS_DIR=$ARTIFACTS_DIR/cucumber BDD_SECTION=first | ||
- NODE_ENV=development ARTIFACTS_DIR=$TRAVIS_BUILD_DIR/artifacts CUCUMBER_ARTIFACTS_DIR=$ARTIFACTS_DIR/cucumber BDD_SECTION=second | ||
|
||
sudo: enabled | ||
addons: | ||
apt: | ||
|
@@ -23,21 +25,27 @@ before_script: | |
- npm install -g [email protected] &> /dev/null | ||
script: | ||
- npm run lint | ||
- if [ "$TRAVIS_EVENT_TYPE" != "push" ]; then | ||
npm run test:bdd:dryrun | ||
npm run test:bdd -- --world-parameters '{"appDataBaseDir":"$CUCUMBER_ARTIFACTS_DIR","keepFailedArtifacts":true}'; | ||
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then | ||
npm run test:bdd:dryrun; | ||
fi | ||
- if [[ ("$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "first" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "first" ) ]]; then | ||
npm run test:bdd:first -- --world-parameters '{"appDataBaseDir":"$CUCUMBER_ARTIFACTS_DIR","keepFailedArtifacts":true}'; | ||
fi | ||
- if [[ ("$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "second" ) ]]; then | ||
npm run test:bdd:second -- --world-parameters '{"appDataBaseDir":"$CUCUMBER_ARTIFACTS_DIR","keepFailedArtifacts":true}'; | ||
fi | ||
- if [[ ( "$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "push" && "$BDD_SECTION" == "first" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "first" ) ]]; then | ||
npm test 2> $ARTIFACTS_DIR/mocha-logs.log; | ||
fi | ||
# checks for arangodb based solution | ||
- npm test 2> $ARTIFACTS_DIR/mocha-logs.log | ||
- npm start &> $ARTIFACTS_DIR/app-start.log & | ||
- sleep 10 | ||
- jobs | ||
- if [ -n "$(jobs -p)" ]; then kill %1; fi | ||
# compile and check Smart Contracts | ||
- ganache-cli -i 5777 -p 7545 -l 10000000 -m "aspect ask story desert profit engage tuition leave fade giraffe exclude brief" &> $ARTIFACTS_DIR/ganache.log & | ||
- cd modules/Blockchain/Ethereum | ||
- truffle test --network test > $ARTIFACTS_DIR/truffle-test.log | ||
- rm -rf build && truffle migrate --reset --compile-all --network ganache > $ARTIFACTS_DIR/truffle-migrate.log | ||
- if [[ ( "$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "push" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "second" ) ]]; then | ||
truffle test --network test > $ARTIFACTS_DIR/truffle-test.log; | ||
fi | ||
- if [[ ( "$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "push" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "second" ) ]]; then | ||
rm -rf build && truffle migrate --reset --compile-all --network ganache > $ARTIFACTS_DIR/truffle-migrate.log; | ||
fi | ||
- cd $TRAVIS_BUILD_DIR | ||
- jobs | ||
- kill -9 %1 | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.