Commit 6634c6c0 authored by BryceLTaylor's avatar BryceLTaylor

circleci split build run step into lint, build, and test steps, store test results

parent 8d9bd280
...@@ -47,13 +47,27 @@ aliases: ...@@ -47,13 +47,27 @@ aliases:
- checkout - checkout
- *restore_npm_cache - *restore_npm_cache
- run: - run:
name: "Run npm test to build" name: "setup and run lint tests"
command: | command: |
npm --production=false install npm --production=false install
WWW_VERSION=${CIRCLE_SHA1:0:5} npm run test npm run test:lint
- run:
name: "run npm build"
command: |
WWW_VERSION=${CIRCLE_SHA1:0:5} npm run build
- run:
name: "Run unit tests"
command: |
npm run test:unit:jest
npm run test:unit:tap:ci
npm run test:unit:convertReportToXunit
- *save_npm_cache - *save_npm_cache
- *save_git_cache - *save_git_cache
- *save_build_cache - *save_build_cache
- store_test_results:
path: test/results
- store_artifacts:
path: test/results
- &deploy - &deploy
<<: *defaults <<: *defaults
steps: steps:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment