Coverage wired in and running in CI (#24)

pull/25/head
Chris Mckay 6 years ago committed by GitHub
parent 45326ca0e6
commit eae0a54a51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .gitignore
  2. 10
      Jenkinsfile
  3. 1119
      package-lock.json
  4. 4
      package.json

1
.gitignore vendored

@ -34,6 +34,7 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage
coverage.json
# nyc test coverage
.nyc_output

10
Jenkinsfile vendored

@ -4,6 +4,11 @@ pipeline {
}
stages {
stage('Setup') {
steps {
sh 'apk add git python make g++'
}
}
stage('Build') {
steps {
sh 'npm install'
@ -19,5 +24,10 @@ pipeline {
sh 'npm test'
}
}
stage('Coverage') {
steps {
sh 'npm run coverage'
}
}
}
}

1119
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -5,7 +5,8 @@
"private": true,
"scripts": {
"lint": "solium -d contracts",
"test": "truffle test --network develop"
"test": "truffle test --network develop",
"coverage": "solidity-coverage"
},
"dependencies": {
"dotenv": "^7.0.0",
@ -13,6 +14,7 @@
"web3-utils": "^1.0.0-beta.52"
},
"devDependencies": {
"solidity-coverage": "^0.5.11",
"solium": "^1.2.4",
"truffle": "^5.0.12"
}

Loading…
Cancel
Save