Skip to content

Commit

Permalink
[Test] Run tests outside of docker context
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi committed May 22, 2020
1 parent 90cf907 commit ce82b67
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,35 +112,24 @@ only_release: &only_release
workflows:
default:
jobs:
- yarn/workflow-queue
- horizon/block:
<<: *only_release
context: horizon
project_id: 11

# Pre-staging
- hokusai/test:
name: test
<<: *not_staging_or_release
# post-steps:
# - run: mkdir -p ./coverage ./.nyc_output ./reports
# - run:
# name: Copy jest coverage artifacts
# command: docker cp hokusai_force_1:/app/coverage ./
# when: always
# - codecov/upload:
# file: ./coverage/lcov.info
# - run:
# name: Copy mocha coverage artifacts
# command: docker cp hokusai_force_1:/app/.nyc_output ./
# when: always
# - codecov/upload:
# file: ./.nyc_output/lcov.info
# - run:
# name: Copy coverage reports
# command: docker cp hokusai_force_1:/app/reports ./
# when: always
# - store_test_results:
# path: ./reports
- yarn/jest:
args: --runInBand
requires:
- yarn/workflow-queue

- yarn/run:
name: test:mocha
script: "test:mocha"
requires:
- yarn/workflow-queue

- yarn/update-cache:
<<: *not_staging_or_release
- yarn/type-check:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"test:smoke": "scripts/smoke_test.sh",
"test": "scripts/test.sh",
"test:jest": "node node_modules/.bin/jest",
"test:mocha": "yarn mocha $(find src -name '*.test.*')",
"type-check": "tsc",
"unlink-all": "yalc remove --all && yarn --check-files",
"webpack": "node --max_old_space_size=2048 -r dotenv/config -r @babel/register node_modules/.bin/webpack --config ./webpack"
Expand Down

0 comments on commit ce82b67

Please sign in to comment.