提交 231622d5 编写于 作者: G gongweibao

modify travis

上级 3d09b348
......@@ -14,8 +14,11 @@ addons:
- python
- python-pip
- python2.7-dev
- go
before_install:
- pip install virtualenv pre-commit
install:
- GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb
script:
- travis/precommit.sh
notifications:
......
#!/bin/sh
command -v go >/dev/null 2>&1
if [[ $? != 0 ]]; then
if [ $? -ne 0 ]; then
echo >&2 "Please install https://golang.org/doc/install#install"
exit 1
fi
......@@ -10,7 +10,7 @@ GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb
for file in $@ ; do
/tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb"
if [[ $? != 0 ]]; then
if [ $? -ne 0 ]; then
echo >&2 "markdown-to-ipynb $file error"
exit 1
fi
......
#!/bin/sh
command -v go >/dev/null 2>&1
if [[ $? != 0 ]]; then
if [ $? -ne 0 ]; then
echo >&2 "Please install go https://golang.org/doc/install#install"
exit 1
fi
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
cur_path=$(dirname $(readlink -f $0))
cd $cur_path/../
......@@ -13,7 +13,7 @@ cd $cur_path/../
#convert md to ipynb
for file in */{README,README\.en}.md ; do
/tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb"
if [[ $? != 0 ]]; then
if [ $? -ne 0 ]; then
echo >&2 "markdown-to-ipynb $file error"
exit 1
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册