Skip to content

Commit

Permalink
fix(build): [#1281] Run "build" automatically before "pretest:single" (
Browse files Browse the repository at this point in the history
…#7)

As "pretest:single" requires "build" to have been run, we make this dependency
explicit in the code.

Fixes openspending/openspending#1281
  • Loading branch information
vitorbaptista authored and akariv committed Jun 8, 2017
1 parent ef2151f commit 4a39a16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ before_install:
before_script:
- npm prune
script:
- npm run build
- npm run test:single
- npm run check-coverage
after_success:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"report-coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"start": "npm run test",
"test": "mocha src/index.test.js -w --watch-extensions json --compilers js:babel/register",
"pretest:single": "npm run build",
"test:single": "cp src/index.test.js dist/ && istanbul cover -x *.test.js _mocha -- -R spec dist/index.test.js --compilers js:babel/register && rm dist/index.test.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
Expand Down

0 comments on commit 4a39a16

Please sign in to comment.