Skip to content

Commit

Permalink
Feature/add dev script (#5)
Browse files Browse the repository at this point in the history
* add travis

* update Travis

* add travis

* change readme

* add deploy pypi

* release 0.2.2

* change conf base path & change get_logger import method

* add travis secure

* add dev script for developers
  • Loading branch information
AddisonGao authored Oct 8, 2018
1 parent 7e94136 commit 72f7f89
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

echo "***************************"
echo " Lyrebird-API-Coverage setup start "
echo "***************************"

# 如果已经有venv目录,删除此目录
if [ -e "./venv/" ]; then
rm -rf ./venv/
fi

mkdir venv
python3 -m venv ./venv

# 有些设备上虚拟环境中没有pip,需要通过easy_install安装
if [ ! -e "./venv/bin/pip" ] ;then
echo "pip no exist, install pip with easy_install"
./venv/bin/easy_install pip
fi

source ./venv/bin/activate
pip3 install -r ./requirements.txt

# 如果没有data目录,创建此目录
if [ ! -e "./data/" ]; then
mkdir ./data
fi

echo "***************************"
echo " Lyrebird-API-Coverage setup finish "
echo "***************************"

0 comments on commit 72f7f89

Please sign in to comment.