From 68eca4b37e796cf0d3c1850a15560a1f71d47879 Mon Sep 17 00:00:00 2001 From: OHTA Shogo Date: Tue, 19 Feb 2019 23:15:01 +0900 Subject: [PATCH] Rewire CI configs --- .circleci/config.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b461654..73e4737 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,31 +2,54 @@ version: 2 jobs: build: docker: - - image: jesiio/web:0.1 + - image: athos/cljs-dev:openjdk-8-alpine-20190219-0 working_directory: ~/repo environment: LEIN_ROOT: "true" JVM_OPTS: -Xmx3200m + CHROMIUM_BIN: /usr/bin/chromium-browser steps: - checkout # Download and cache dependencies - restore_cache: - key: v1-dependencies-{{ checksum "project.clj" }} + name: restore npm cache + key: v1-npm-{{ checksum "package-lock.json" }} + + - run: npm ci + + - save_cache: + name: save npm cache + paths: + - ~/.npm + key: v1-npm-{{ checksum "package-lock.json" }} + + - restore_cache: + name: restore clj cache + key: v1-clj-{{ checksum "project.clj" }} - run: lein deps - save_cache: + name: save clj cache paths: - ~/.m2 - key: v1-dependencies-{{ checksum "project.clj" }} + key: v1-clj-{{ checksum "project.clj" }} + + - run: + name: browser test + command: lein doo chromium-headless test once + + - run: + name: browser min test + command: lein doo chromium-headless min-test once - run: - name: test - command: lein test-all + name: node test + command: lein doo node node-test once # - run: # name: code-coverage