From 26b770fd8f7a658ddceb9a6c4eadac56a4c9e1f1 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 8 Aug 2017 16:15:27 +0800 Subject: [PATCH] write python manage.py migrate to run.sh --- .travis.yml | 1 - run.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0481bfd..acf7997 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,5 @@ services: install: - pip install -r requirements.txt script: - - python calApi/manage.py migrate; - bash run.sh - cd calApi; python manage.py test; \ No newline at end of file diff --git a/run.sh b/run.sh index 6881965..e1b266e 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +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 \ No newline at end of file +cd calApi; pwd; python manage.py migrate; python manage.py buildCourse NSYSU.json NSYSU 1061 \ No newline at end of file