From ab516ee5271ac87a16ff98e638de0e09d24a2909 Mon Sep 17 00:00:00 2001 From: Lukas Hrachovina Date: Thu, 16 Aug 2018 12:21:56 +0200 Subject: [PATCH] Update circle config Signed-off-by: Lukas Hrachovina --- .circleci/config.yml | 95 ++++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 47 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f81f360..b6b0822 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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