Skip to content

Commit

Permalink
Fix circle-ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosvalle committed May 15, 2019
1 parent 9243413 commit f1609ef
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .circleci/config.yml
Expand Up @@ -2,40 +2,23 @@
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 1
version: 2
jobs:
build:
working_directory: ~/project/sam-design-system-site
docker:
# specify the version you desire here
- image: circleci/node:10.14.0-browsers


# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/project

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- v2-dependencies-{{ checksum "package.json" }}
- v2-dependencies-
- run: npm install
- run: sudo npm install -g @angular/cli@6.2.7

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

# run tests!
- run: ng lint
key: v2-dependencies-{{ checksum "package.json" }}
- run: npm run lint
- run: npm run build

0 comments on commit f1609ef

Please sign in to comment.