Skip to content

Commit 9eb665b

Browse files
committed
FIX substitute underscore for backslash in CIRCLE_BRANCH
1 parent f6757a3 commit 9eb665b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
name: docker build 1
1717
no_output_timeout: 60m
1818
command: |
19-
docker build -t miykael/nipype_tutorial:$(sed 's|/|_|g' <<< $CIRCLE_BRANCH) .
19+
docker build -t miykael/nipype_tutorial:$(echo $CIRCLE_BRANCH | sed 's|/|_|g') .
2020
- run:
2121
name: run tests 1
2222
no_output_timeout: 120m
2323
command: |
24-
docker run -it --rm miykael/nipype_tutorial:$(sed 's|/|_|g' <<< $CIRCLE_BRANCH) python /home/neuro/nipype_tutorial/test_notebooks.py 1
24+
docker run -it --rm miykael/nipype_tutorial:$(echo $CIRCLE_BRANCH | sed 's|/|_|g') python /home/neuro/nipype_tutorial/test_notebooks.py 1
2525
test_2:
2626
docker:
2727
- image: docker:18.05.0-ce-git
@@ -33,12 +33,12 @@ jobs:
3333
name: docker build 2
3434
no_output_timeout: 60m
3535
command: |
36-
docker build -t miykael/nipype_tutorial:$(sed 's|/|_|g' <<< $CIRCLE_BRANCH) .
36+
docker build -t miykael/nipype_tutorial:$(echo $CIRCLE_BRANCH | sed 's|/|_|g') .
3737
- run:
3838
name: run tests 2
3939
no_output_timeout: 120m
4040
command: |
41-
docker run -it --rm miykael/nipype_tutorial:$(sed 's|/|_|g' <<< $CIRCLE_BRANCH) python /home/neuro/nipype_tutorial/test_notebooks.py 2
41+
docker run -it --rm miykael/nipype_tutorial:$(echo $CIRCLE_BRANCH | sed 's|/|_|g') python /home/neuro/nipype_tutorial/test_notebooks.py 2
4242
test_3:
4343
docker:
4444
- image: docker:18.05.0-ce-git
@@ -50,12 +50,12 @@ jobs:
5050
name: docker build 3
5151
no_output_timeout: 60m
5252
command: |
53-
docker build -t miykael/nipype_tutorial:$(sed 's|/|_|g' <<< $CIRCLE_BRANCH) .
53+
docker build -t miykael/nipype_tutorial:$(echo $CIRCLE_BRANCH | sed 's|/|_|g') .
5454
- run:
5555
name: run tests 3
5656
no_output_timeout: 120m
5757
command: |
58-
docker run -it --rm miykael/nipype_tutorial:$(sed 's|/|_|g' <<< $CIRCLE_BRANCH) python /home/neuro/nipype_tutorial/test_notebooks.py 3
58+
docker run -it --rm miykael/nipype_tutorial:$(echo $CIRCLE_BRANCH | sed 's|/|_|g') python /home/neuro/nipype_tutorial/test_notebooks.py 3
5959
6060
workflows:
6161
version: 2

0 commit comments

Comments
 (0)