Fix build script
This commit is contained in:
parent
2c32696417
commit
3a9a327957
2 changed files with 23 additions and 1 deletions
|
@ -13,6 +13,13 @@ python:
|
||||||
# - "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
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- python: "2.7"
|
||||||
|
env: PVERSION=2
|
||||||
|
- python: "3.6"
|
||||||
|
env: PVERSION=3
|
||||||
|
|
||||||
install: false
|
install: false
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
|
|
15
build.sh
15
build.sh
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
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
|
||||||
|
@ -9,3 +10,17 @@ python -m py_compile cps/ub.py
|
||||||
python -m py_compile cps/uploader.py
|
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
|
||||||
|
f [[$PVERSION=3]]; then
|
||||||
|
python3.6 -m py_compile cps.py
|
||||||
|
python3.6 -m py_compile cps/book_formats.py
|
||||||
|
python3.6 -m py_compile cps/db.py
|
||||||
|
python3.6 -m py_compile cps/epub.py
|
||||||
|
python3.6 -m py_compile cps/fb2.py
|
||||||
|
python3.6 -m py_compile cps/helper.py
|
||||||
|
python3.6 -m py_compile cps/ub.py
|
||||||
|
python3.6 -m py_compile cps/uploader.py
|
||||||
|
python3.6 -m py_compile cps/web.py
|
||||||
|
python3.6 -m py_compile cps.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue