Skip to content

Commit

Permalink
ci(cucumber-report): moved the report task for cucumber to an npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
travi authored and travi-bot committed Aug 11, 2017
1 parent 4d996cc commit 7fe21e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ machine:
node:
version: v7.3

dependencies:
pre:
- npm install -g cucumber

test:
post:
- mkdir -p $CIRCLE_TEST_REPORTS/cucumber
- BABEL_ENV=node cucumber.js --format=json:$CIRCLE_TEST_REPORTS/cucumber/tests.cucumber --tags 'not @wip' test/integration/features/ --compiler=js*:babel-register
- npm run cucumber-report
- npm run report-coverage

deployment:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"tests:integration": "BABEL_ENV=node cucumber.js test/integration --compiler js:babel-register --tags 'not @wip'",
"tests:integration:debug": "DEBUG=test run-s tests:integration",
"tests:integration:wip": "BABEL_ENV=node cucumber.js test/integration --compiler js:babel-register --tags @wip",
"cucumber-report": "BABEL_ENV=node cucumber.js --format=json:$CIRCLE_TEST_REPORTS/cucumber/tests.cucumber --tags 'not @wip' test/integration --compiler js:babel-register",
"tests:pact": "BABEL_ENV=node babel-node scripts/pact.js",
"test": "run-s lint:* coverage tests:integration tests:pact",
"coverage": "nyc run-s tests:unit",
Expand Down

0 comments on commit 7fe21e5

Please sign in to comment.