Skip to content

Commit

Permalink
Tweaking CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed May 25, 2018
1 parent 374d65a commit e5b84c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
version: 2
jobs:
build:
environment:
# NODE_ENV: production

docker:
- image: cypress/base:8
- image: cypress/base:10

working_directory: ~/repo

Expand All @@ -12,19 +15,16 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run: npm ci

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
key: v1-dependencies-{{ checksum "package-lock.json" }}

- run: npm run lint

- run: npm test


1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM cypress/base:10

RUN mkdir /srv/app
WORKDIR /srv/app
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm ci
COPY . .

0 comments on commit e5b84c0

Please sign in to comment.