From b7e6499f1bc77639e361ff4f83524daf90f03c47 Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Sat, 6 Nov 2021 09:44:59 +0800 Subject: [PATCH] Revert "circleci: enable .git directory caching" --- .circleci/config.yml | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1e6efd99a5..0de6214936 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,32 +5,26 @@ jobs: # a collection of steps docker: # run the steps with Docker - image: circleci/node:dubnium # ...with this image as the primary container; this is where all `steps` will run steps: # a collection of executable commands - - restore_cache: # try to restore .git folder from cache to speed up checkout - keys: - - source-v1-{{ .Branch }}-{{ .Revision }} - - source-v1-{{ .Branch }}- - - source-v1- - checkout # special step to check out source code to working directory - - run: - name: "Pull git submodules" - command: | - git submodule sync - git submodule update --init - - save_cache: # write .git folder to cache - key: source-v1-{{ .Branch }}-{{ .Revision }} - paths: - - ".git" - - run: - name: "Set environment variables" + name: "Setting env variables" command: | echo 'export BS_TRAVIS_CI=1' >> $BASH_ENV echo 'export NINJA_FORCE_REBUILD=1' >> $BASH_ENV echo 'export OCAMLRUNPARAM="b"' >> $BASH_ENV - run: - name: "Check environment variables" + name: "Check env variables" command: | echo BS_TRAVIS_CI ${BS_TRAVIS_CI} + - run: + name: "Pull Submodules" + command: | + git submodule init + git submodule update + - run: + name: ci-install + command: npm ci # `npm ci` is not available on node v8 - - run: npm ci # `npm ci` is not available on node v8 - - run: npm test + - run: # run tests + name: test + command: npm test