Skip to content

Commit

Permalink
Version 2.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
kipliklotrika committed Dec 5, 2018
2 parents 0c7c630 + b66ed18 commit 3df3517
Show file tree
Hide file tree
Showing 43 changed files with 1,042 additions and 1,034 deletions.
32 changes: 20 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
253 changes: 0 additions & 253 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 3df3517

Please sign in to comment.