Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Run parcel build as initial step
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Strand committed Jan 8, 2020
1 parent 3af1b51 commit ac1a83d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
name: E2E tests
command: |
DocID=$(curl -s --data-binary @data/drugcases.qvf http://localhost:9076/v1/apps/import | jq -r '.attributes.id')
npm run start:cov &
sleep 60
npm run start:build
npm run start:serve &
DocID=$DocID npm run test:e2e
npx nyc report -r html
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"scripts": {
"build": "cross-env NODE_ENV=production parcel build src/index.html",
"start": "parcel src/index.html --open",
"start:cov": "cross-env NODE_ENV=test parcel src/index.html",
"start:build": "cross-env NODE_ENV=test parcel build src/index.html",
"start:serve": "cross-env NODE_ENV=test parcel servce src/index.html",
"test:unit": "aw --glob test/unit/*.spec.js --src src/logic/*.js --coverage",
"test:comp": "aw -c ./test/comp/aw.config.js && nyc report -t ./coverage/.nyc_output -r lcov -r text",
"test:e2e": "aw puppeteer -c ./test/e2e/aw.config.js",
Expand Down

0 comments on commit ac1a83d

Please sign in to comment.