Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
refactor: update jest and tests (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Apr 10, 2018
1 parent ee0142a commit 1f48558
Show file tree
Hide file tree
Showing 24 changed files with 4,776 additions and 2,373 deletions.
17 changes: 9 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
unit_tests: &unit_tests
steps:
- checkout
- setup_remote_docker
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
- run:
name: Build project.
command: npm run build
- run:
name: Run unit tests.
command: npm run ci:test
canary_tests: &canary_tests
steps:
- checkout
- setup_remote_docker
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
Expand All @@ -22,9 +23,12 @@ canary_tests: &canary_tests
- run:
name: Install Webpack Canary
command: npm i --no-save webpack@next
- run:
name: Build project.
command: npm run build
- run:
name: Run unit tests.
command: npm run ci:test
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test ; fi

version: 2
jobs:
Expand All @@ -33,7 +37,6 @@ jobs:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- setup_remote_docker
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
Expand All @@ -49,7 +52,6 @@ jobs:
- image: webpackcontrib/circleci-node8:latest
steps:
- checkout
- setup_remote_docker
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
Expand Down Expand Up @@ -79,7 +81,6 @@ jobs:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- setup_remote_docker
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
Expand All @@ -99,7 +100,6 @@ jobs:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- setup_remote_docker
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
Expand Down Expand Up @@ -154,8 +154,9 @@ workflows:
- publish:
requires:
- node8-latest
- node8-canary
- node9-latest
filters:
branches:
only:
- master
- master
Loading

0 comments on commit 1f48558

Please sign in to comment.