Skip to content

Commit d9353b6

Browse files
committed
Fix circle/ci
1 parent c8de349 commit d9353b6

File tree

17 files changed

+9677
-169
lines changed

17 files changed

+9677
-169
lines changed

.circleci/config.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ step_install_nvm: &step_install_nvm
1414
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
1515
jobs:
1616
unit-test:
17-
docker:
18-
- image: circleci/node:8.15.0
17+
machine: true
1918
steps:
2019
- checkout
20+
- <<: *step_install_nvm
2121
- run:
2222
name: Delete any old node_modules
2323
command: |
2424
rm -rf node_modules/
25+
- run:
26+
name: Install yarn
27+
command: |
28+
npm install -g yarn
2529
- run:
2630
name: Install dependencies
2731
command: |
@@ -30,12 +34,10 @@ jobs:
3034
name: Run tests
3135
command: |
3236
npm run test-cov
33-
34-
# TODO: Re-enable
35-
#- run:
36-
# name: Upload coverage
37-
# command: |
38-
# bash <(curl -s https://codecov.io/bash)
37+
- run:
38+
name: Upload coverage
39+
command: |
40+
bash <(curl -s https://codecov.io/bash)
3941
4042
# This works but takes a while....
4143
e2e-colony:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ node_modules/
55
.DS_Store
66
test/artifacts
77
test/cache
8-
yarn.lock
8+
yarn.lock
9+
temp
10+
.nyc_output/

dist/truffle.plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Web3 = require('web3');
3333
const util = require('util');
3434
const ganache = require('ganache-core-sc');
3535

36-
module.exports = async function(truffleConfig){
36+
async function plugin(truffleConfig){
3737
let app;
3838
let error;
3939
let testsErrored = false;
@@ -152,4 +152,4 @@ const paths = {
152152
}
153153
}
154154

155-
155+
module.exports = plugin;

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
"test": "test"
99
},
1010
"scripts": {
11-
"test": "mocha test/units --timeout 70000 --no-warnings --exit",
12-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- test/units --timeout 70000 --exit"
11+
"nyc": "SILENT=true nyc --exclude '**/sc_temp/**' --exclude '**/test/**'",
12+
"nyc:ci": "SILENT=true nyc --reporter=lcov --exclude '**/sc_temp/**' --exclude '**/test/**'",
13+
"test": "npm run nyc -- mocha test/units --timeout 70000 --no-warnings --exit",
14+
"test:debug": "mocha test/units --timeout 70000 --no-warnings --exit",
15+
"test-cov": "npm run nyc:ci -- mocha test/units --timeout 70000 --no-warnings --exit"
1316
},
1417
"homepage": "https://github.com/sc-forks/solidity-coverage",
1518
"repository": {
@@ -36,6 +39,7 @@
3639
"@nomiclabs/buidler-web3": "^1.0.0-beta.8",
3740
"decache": "^4.5.1",
3841
"mocha": "5.2.0",
42+
"nyc": "^14.1.1",
3943
"solc": "^0.5.10",
4044
"truffle": "^5.0.31",
4145
"truffle-config": "^1.1.18"

temp/.solcover.js

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

temp/assets/SimpleError.sol

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

temp/assets/asset.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

temp/contracts/Migrations.sol

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

temp/contracts/SimpleError.sol

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

temp/migrations/1_initial.js

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

0 commit comments

Comments
 (0)