Skip to content

Commit ee15b1e

Browse files
[CONFIG] refactor circle-CI to handle submodules (- WIP #79 -)
1 parent 608234f commit ee15b1e

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.circleci/config.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,32 @@ commands:
99
command: |
1010
make clean
1111
when: always
12+
reposync:
13+
steps:
14+
- run:
15+
shell: /bin/bash
16+
name: "Fetch"
17+
command: |
18+
git fetch ;
19+
when: always
20+
- run:
21+
shell: /bin/bash
22+
name: "Pull"
23+
command: |
24+
git pull --all ;
25+
when: on_success
26+
- run:
27+
shell: /bin/bash
28+
name: "Sync Submodules"
29+
command: |
30+
git submodule sync ;
31+
when: on_success
32+
- run:
33+
shell: /bin/bash
34+
name: "Update Submodules"
35+
command: |
36+
git submodule update --init ;
37+
when: on_success
1238

1339
parameters:
1440
python-version:
@@ -29,10 +55,7 @@ jobs:
2955
working_directory: ~/python-repo
3056
steps:
3157
- checkout
32-
- run:
33-
name: "fetch and pull"
34-
command: |
35-
git fetch && git pull --all || : ;
58+
- reposync
3659
- run:
3760
shell: /bin/bash
3861
name: "install depends attempt"

0 commit comments

Comments
 (0)