-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #470 from PolymathNetwork/circle-ci
Adding Circle CI to dev-2.2.0
- Loading branch information
Showing
8 changed files
with
194 additions
and
42 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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: yarn install | ||
- run: sudo npm i truffle -g | ||
- run: node --version | ||
- run: truffle version | ||
- run: truffle compile | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
test: | ||
docker: | ||
- image: circleci/node:8 | ||
parallelism: 2 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: yarn install | ||
- run: sudo npm i truffle -g | ||
- run: node --version | ||
- run: truffle version | ||
- run: npm run test | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
- store_test_results: | ||
path: test-results | ||
- store_artifacts: | ||
path: ./test-results/mocha/results.xml | ||
coverage: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: yarn install | ||
- run: sudo npm i truffle -g | ||
- run: node --version | ||
- run: truffle version | ||
- run: | ||
command: npm run coverage | ||
no_output_timeout: 1h | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
- store_artifacts: | ||
path: ./coverage/lcov.info | ||
docs: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: yarn install | ||
- run: sudo npm i truffle -g | ||
- run: node --version | ||
- run: truffle version | ||
- run: npm run docs | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
workflows: | ||
version: 2 | ||
commit: | ||
jobs: | ||
- coverage | ||
daily-builds: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- dev-2.1.0 | ||
- dev-2.2.0 | ||
- dev-3.0.0 | ||
jobs: | ||
- coverage | ||
docs: | ||
jobs: | ||
- docs: | ||
filters: | ||
branches: | ||
only: | ||
- master |
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 |
---|---|---|
|
@@ -22,4 +22,5 @@ bridge.log | |
allFiredEvents | ||
extract/ | ||
extract.py | ||
extract.zip | ||
extract.zip | ||
/test-results |
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
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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
rm -rf flat | ||
|
||
TRAVIS_PULL_REQUEST=true scripts/test.sh | ||
COVERAGE=true scripts/test.sh |
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
require('babel-register'); | ||
require('babel-polyfill'); | ||
|
||
module.exports = { | ||
networks: { | ||
development: { | ||
host: 'localhost', | ||
port: 8545, | ||
network_id: '*', // Match any network id | ||
gas: 7900000, | ||
}, | ||
coverage: { | ||
host: "localhost", | ||
network_id: "*", | ||
port: 8545, // <-- If you change this, also set the port option in .solcover.js. | ||
gas: 0xfffffffffff, // <-- Use this high gas value | ||
gasPrice: 0x01 // <-- Use this low gas price | ||
} | ||
}, | ||
solc: { | ||
optimizer: { | ||
enabled: true, | ||
runs: 200, | ||
}, | ||
}, | ||
mocha: { | ||
enableTimeouts: false, | ||
reporter: "mocha-junit-reporter", | ||
reporterOptions: { | ||
mochaFile: './test-results/mocha/results.xml' | ||
} | ||
} | ||
}; |
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