Merge pull request #168 from ukstv/master

Remove only build/contracts
pull/171/head
c-g-e-w-e-k-e- 7 years ago committed by GitHub
commit ee5b33f807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/app.js

@ -114,13 +114,13 @@ class App {
// Compile the contracts before instrumentation and preserve their ABI's.
// We will be stripping out access modifiers like view before we recompile
// post-instrumentation.
if (shell.test('-e', `${this.coverageDir}/build`)){
shell.rm('-Rf', `${this.coverageDir}/build`)
if (shell.test('-e', `${this.coverageDir}/build/contracts`)){
shell.rm('-Rf', `${this.coverageDir}/build/contracts`)
}
this.runCompileCommand();
this.originalArtifacts = this.loadArtifacts();
shell.rm('-Rf', `${this.coverageDir}/build`);
shell.rm('-Rf', `${this.coverageDir}/build/contracts`);
} catch (err) {
const msg = ('There was a problem generating the coverage environment: ');

Loading…
Cancel
Save