Skip to content

Revert "circleci: enable .git directory caching" #5331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 13 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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