Skip to content

Commit

Permalink
add auto ddeploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
david30907d committed Aug 5, 2017
1 parent 9077147 commit 86702de
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
db.sqlite3
curso
cphelper
CampassCrawler

# virtualenv
venv
Expand All @@ -18,6 +19,7 @@ venv
*.bak
*.log
*.DS_Store
*.json
[Tt]est[Rr]esult*
[Tt]humbs.db
_ReSharper.*
Expand Down
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: python
# if command bellow need to executed in sudo
# add this line.
# sudo: required
python:
- 3.5
- 3.6
install:
- pip install -r requirements.txt
script:
- bash run.sh
- cd calApi; python manage.py test;
4 changes: 4 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
git clone https://github.com/Stufinite/CampassCrawler.git;
pip install -r CampassCrawler/requirements.txt
cd CampassCrawler/UCrawler; scrapy crawl NSYSU -o ../../calApi/NSYSU.json -t json; cd -
cd calApi; pwd; python manage.py buildCourse NSYSU.json NSYSU 1061

0 comments on commit 86702de

Please sign in to comment.