Skip to content

Commit

Permalink
Update circle config
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Hrachovina <[email protected]>
  • Loading branch information
Hrachos committed Aug 16, 2018
1 parent a44e3bb commit ab516ee
Showing 1 changed file with 48 additions and 47 deletions.
95 changes: 48 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
version: 2
build:
docker:
image: circleci/node:6.14.3-jessie
steps:
- checkout
- run:
command: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN;
- restore_cache:
key: base-cache-{{ checksum "package.json" }}
- restore_cache:
key: example-cache-{{ checksum "package.json" }}
- run:
command: npm install && cd example && npm install
- save_cache:
jobs:
build:
docker:
- image: circleci/node:6.14.3-jessie
steps:
- checkout
- run:
command: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN;
- restore_cache:
key: base-cache-{{ checksum "package.json" }}
paths:
- node_modules
- save_cache:
- restore_cache:
key: example-cache-{{ checksum "package.json" }}
- run:
command: npm install && cd example && npm install
- save_cache:
key: base-cache-{{ checksum "package.json" }}
paths:
- node_modules
- save_cache:
key: example-cache-{{ checksum "example/package.json" }}
paths:
- example/node_modules
test:
docker:
- image: circleci/node:6.14.3-jessie
steps:
- restore_cache:
key: base-cache-{{ checksum "package.json" }}
- restore_cache:
key: example-cache-{{ checksum "example/package.json" }}
paths:
- example/node_modules
test:
docker:
image: circleci/node:6.14.3-jessie
steps:
- restore_cache:
key: base-cache-{{ checksum "package.json" }}
- restore_cache:
key: example-cache-{{ checksum "example/package.json" }}
- run:
command: npm install -g gulp
- run:
command: gulp ava
- run:
command: gulp eslint
- run:
command: cd example && gulp
- run:
command: sleep 10 && curl --retry 10 --retry-delay 5 -v http://localhost:3000/
- run:
command: npm install -g gulp
- run:
command: gulp ava
- run:
command: gulp eslint
- run:
command: cd example && gulp
- run:
command: sleep 10 && curl --retry 10 --retry-delay 5 -v http://localhost:3000/

publish:
docker:
image: circleci/node:6.14.3-jessie
steps:
- restore_cache:
key: base-cache-{{ checksum "package.json" }}
- restore_cache:
key: example-cache-{{ checksum "example/package.json" }}
- run:
command: ./publish
publish:
docker:
- image: circleci/node:6.14.3-jessie
steps:
- restore_cache:
key: base-cache-{{ checksum "package.json" }}
- restore_cache:
key: example-cache-{{ checksum "example/package.json" }}
- run:
command: ./publish

workflows:
version: 2
Expand Down

0 comments on commit ab516ee

Please sign in to comment.