Skip to content

Commit 219f137

Browse files
committed
BUG: fix command logic
1 parent 20f1b07 commit 219f137

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ commands =
8080
!buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10 tutorials
8181

8282
# We don't want to execute in rendering the ones we ignore for testing
83-
buildhtml: bash -c 'grep -f ignore_testing all_tutorials || true > ignore_execute'
83+
buildhtml: bash -c '(grep -f ignore_testing all_tutorials || true) > ignore_execute'
8484

8585
# On CircleCI rendering preview, we also don't want to execute anything that hasn't been modified
86-
buildhtml: bash -c 'if [[ $CIRCLECI == true ]]; then grep -vf changed_tutorials all_tutorials || true >> ignore_execute; fi'
86+
buildhtml: bash -c 'if [[ $CIRCLECI == true ]]; then (grep -vf changed_tutorials all_tutorials || true) >> ignore_execute; fi'
8787

8888
# sed -i needs a bit of hacky conditional on ubuntu to cover the case of an empty ignore
8989
buildhtml: bash -c 'if [ -s ignore_execute ]; then for name in $(cat ignore_execute | sort| uniq); do if [ -z "$(head -n 20 ${name}| grep execute:)" ]; then sed -i -e "s|kernelspec:|execute:\n skip: true\nkernelspec:|g" ${name}; fi; done;fi'

0 commit comments

Comments
 (0)