From f98b7b7578b0e2eab46cba3b43c6f1c82cd0d71f Mon Sep 17 00:00:00 2001 From: Daiki Kunii Date: Mon, 19 Aug 2019 18:20:21 +0900 Subject: [PATCH] add Added circleCI config --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..ea55c4a4 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ +version: 2 +jobs: + build: + working_directory: ~/satellites + docker: + - image: circleci/node:8 + steps: + - restore_cache: + keys: + - source-v1-{{ .Branch }}-{{ .Revision }} + - source-v1-{{ .Branch }}- + - source-v1- + - checkout + - save_cache: + key: source-v1-{{ .Branch }}-{{ .Revision }} + paths: + - .git + - restore_cache: + key: v1-npm-deps-{{ checksum "package.json" }} + - run: + name: templates npm install + command: | + cd templates + npm install + - save_cache: + key: v1-npm-deps-{{ checksum "package.json" }} + paths: + - node_modules + - run: + name: lint + command: | + cd templates + mkdir -p /tmp/test-reports/eslint + node_modules/.bin/eslint . --format junit --output-file /tmp/test-reports/eslint/results.xml + - store_test_results: + path: /tmp/test-reports \ No newline at end of file