File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,32 @@ jobs: # a collection of steps
5
5
docker : # run the steps with Docker
6
6
- image : circleci/node:dubnium # ...with this image as the primary container; this is where all `steps` will run
7
7
steps : # a collection of executable commands
8
+ - restore_cache : # try to restore .git folder from cache to speed up checkout
9
+ keys :
10
+ - source-v1-{{ .Branch }}-{{ .Revision }}
11
+ - source-v1-{{ .Branch }}-
12
+ - source-v1-
8
13
- checkout # special step to check out source code to working directory
14
+ - run :
15
+ name : " Pull git submodules"
16
+ command : |
17
+ git submodule sync
18
+ git submodule update --init
19
+ - save_cache : # write .git folder to cache
20
+ key : source-v1-{{ .Branch }}-{{ .Revision }}
21
+ paths :
22
+ - " .git"
23
+
9
24
- run :
10
- name : " Setting env variables"
25
+ name : " Set environment variables"
11
26
command : |
12
27
echo 'export BS_TRAVIS_CI=1' >> $BASH_ENV
13
28
echo 'export NINJA_FORCE_REBUILD=1' >> $BASH_ENV
14
29
echo 'export OCAMLRUNPARAM="b"' >> $BASH_ENV
15
30
- run :
16
- name : " Check env variables"
31
+ name : " Check environment variables"
17
32
command : |
18
33
echo BS_TRAVIS_CI ${BS_TRAVIS_CI}
19
- - run :
20
- name : " Pull Submodules"
21
- command : |
22
- git submodule init
23
- git submodule update
24
- - run :
25
- name : ci-install
26
- command : npm ci # `npm ci` is not available on node v8
27
34
28
- - run : # run tests
29
- name : test
30
- command : npm test
35
+ - run : npm ci # `npm ci` is not available on node v8
36
+ - run : npm test
You can’t perform that action at this time.
0 commit comments