提交 00eeb5f4 编写于 作者: Y Yu Yang 提交者: GitHub

Merge pull request #200 from reyoung/feature/fix_precommit_ipynb

Fix convert_markdown_into_ipynb script
...@@ -19,7 +19,7 @@ before_install: ...@@ -19,7 +19,7 @@ before_install:
- pip install -U virtualenv pre-commit pip - pip install -U virtualenv pre-commit pip
- GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb - GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb
script: script:
- travis/precommit.sh - PATH=/tmp/go/bin:$PATH travis/precommit.sh
notifications: notifications:
email: email:
on_success: change on_success: change
......
#!/bin/sh #!/bin/sh
for file in $@ ; do for file in $@ ; do
/tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb" markdown-to-ipynb < $file > ${file%.*}".ipynb"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo >&2 "markdown-to-ipynb $file error" echo >&2 "markdown-to-ipynb $file error"
exit 1 exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册