Fix shell script bug

This commit is contained in:
林檎 2017-03-05 15:51:20 +08:00
parent 3a9a327957
commit 5bd93186c2
2 changed files with 5 additions and 5 deletions

View File

@ -1,14 +1,14 @@
language: python language: python
python: #python:
# - "2.6" # - "2.6"
- "2.7" # - "2.7"
# - "3.2" # - "3.2"
# - "3.3" # - "3.3"
# - "3.4" # - "3.4"
# - "3.5" # - "3.5"
# - "3.5-dev" # 3.5 development branch # - "3.5-dev" # 3.5 development branch
- "3.6" # - "3.6"
# - "3.6-dev" # 3.6 development branch # - "3.6-dev" # 3.6 development branch
# - "3.7-dev" # 3.7 development branch # - "3.7-dev" # 3.7 development branch
# - "nightly" # currently points to 3.7-dev # - "nightly" # currently points to 3.7-dev

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
if [[$PVERSION=2]]; then if [[ $PVERSION = 2 ]]; then
python -m py_compile cps.py python -m py_compile cps.py
python -m py_compile cps/book_formats.py python -m py_compile cps/book_formats.py
python -m py_compile cps/db.py python -m py_compile cps/db.py
@ -11,7 +11,7 @@ python -m py_compile cps/uploader.py
python -m py_compile cps/web.py python -m py_compile cps/web.py
python -m py_compile cps.py python -m py_compile cps.py
fi fi
f [[$PVERSION=3]]; then if [[ $PVERSION = 3 ]]; then
python3.6 -m py_compile cps.py python3.6 -m py_compile cps.py
python3.6 -m py_compile cps/book_formats.py python3.6 -m py_compile cps/book_formats.py
python3.6 -m py_compile cps/db.py python3.6 -m py_compile cps/db.py