Skip to content

Commit 3df3517

Browse files
committed
Version 2.0.28
2 parents 0c7c630 + b66ed18 commit 3df3517

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1042
-1034
lines changed

.travis.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ language: node_js
33
node_js:
44
- "9"
55
env:
6-
- NODE_ENV=development ARTIFACTS_DIR=$TRAVIS_BUILD_DIR/artifacts CUCUMBER_ARTIFACTS_DIR=$ARTIFACTS_DIR/cucumber
6+
- NODE_ENV=development ARTIFACTS_DIR=$TRAVIS_BUILD_DIR/artifacts CUCUMBER_ARTIFACTS_DIR=$ARTIFACTS_DIR/cucumber BDD_SECTION=first
7+
- NODE_ENV=development ARTIFACTS_DIR=$TRAVIS_BUILD_DIR/artifacts CUCUMBER_ARTIFACTS_DIR=$ARTIFACTS_DIR/cucumber BDD_SECTION=second
8+
79
sudo: enabled
810
addons:
911
apt:
@@ -23,21 +25,27 @@ before_script:
2325
- npm install -g truffle@5.0.0-beta.1 &> /dev/null
2426
script:
2527
- npm run lint
26-
- if [ "$TRAVIS_EVENT_TYPE" != "push" ]; then
27-
npm run test:bdd:dryrun
28-
npm run test:bdd -- --world-parameters '{"appDataBaseDir":"$CUCUMBER_ARTIFACTS_DIR","keepFailedArtifacts":true}';
28+
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then
29+
npm run test:bdd:dryrun;
30+
fi
31+
- if [[ ("$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "first" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "first" ) ]]; then
32+
npm run test:bdd:first -- --world-parameters '{"appDataBaseDir":"$CUCUMBER_ARTIFACTS_DIR","keepFailedArtifacts":true}';
33+
fi
34+
- if [[ ("$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "second" ) ]]; then
35+
npm run test:bdd:second -- --world-parameters '{"appDataBaseDir":"$CUCUMBER_ARTIFACTS_DIR","keepFailedArtifacts":true}';
36+
fi
37+
- if [[ ( "$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "push" && "$BDD_SECTION" == "first" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "first" ) ]]; then
38+
npm test 2> $ARTIFACTS_DIR/mocha-logs.log;
2939
fi
30-
# checks for arangodb based solution
31-
- npm test 2> $ARTIFACTS_DIR/mocha-logs.log
32-
- npm start &> $ARTIFACTS_DIR/app-start.log &
33-
- sleep 10
34-
- jobs
35-
- if [ -n "$(jobs -p)" ]; then kill %1; fi
3640
# compile and check Smart Contracts
3741
- 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 &
3842
- cd modules/Blockchain/Ethereum
39-
- truffle test --network test > $ARTIFACTS_DIR/truffle-test.log
40-
- rm -rf build && truffle migrate --reset --compile-all --network ganache > $ARTIFACTS_DIR/truffle-migrate.log
43+
- if [[ ( "$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "push" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "second" ) ]]; then
44+
truffle test --network test > $ARTIFACTS_DIR/truffle-test.log;
45+
fi
46+
- if [[ ( "$TRAVIS_EVENT_TYPE" == "pull_request" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "push" && "$BDD_SECTION" == "second" ) || ( "$TRAVIS_EVENT_TYPE" == "cron" && "$BDD_SECTION" == "second" ) ]]; then
47+
rm -rf build && truffle migrate --reset --compile-all --network ganache > $ARTIFACTS_DIR/truffle-migrate.log;
48+
fi
4149
- cd $TRAVIS_BUILD_DIR
4250
- jobs
4351
- kill -9 %1

CHANGELOG.md

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)