Skip to content

Commit

Permalink
Test3
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 30, 2019
1 parent 508fff7 commit 6d04770
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
version: 2.1

aliases:
- &repo_cache_filename |
repo-{{ .Environment.CIRCLE_SHA1 }}

- &npm_cache_filename |
{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "package-lock.json" }}

commands:
install:
parameters:
Expand All @@ -9,11 +16,18 @@ commands:
default: []
steps:
- checkout
- save_cache:
key: *repo_cache_filename
paths:
- /home/circleci/project/
- restore_cache:
key: "{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum \".circleci/config.yml\" }}-{{ checksum \"package-lock.json\" }}"
key: *npm_cache_filename
- run: node --version
- run: npm --version
- run: java -version
- run: npm ci
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum \".circleci/config.yml\" }}-{{ checksum \"package-lock.json\" }}"
key: *npm_cache_filename
paths:
- /home/circleci/.npm
- ./node_modules/
Expand All @@ -25,9 +39,8 @@ commands:
type: steps
default: []
steps:
- run: node --version
- run: npm --version
- run: java -version
- restore_cache:
key: *repo_cache_filename
- steps: << parameters.test-commands >>

jobs:
Expand Down

0 comments on commit 6d04770

Please sign in to comment.