From d56d67ce43893c2a5cacae1c53765f7950bb7013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=AA=8E?= Date: Sun, 5 Mar 2017 15:55:10 +0800 Subject: [PATCH] Fix bash --- .travis.yml | 16 ++++++++-------- build.sh | 17 ++--------------- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 49024a22..d863179d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,23 +2,23 @@ language: python #python: # - "2.6" -# - "2.7" + - "2.7" # - "3.2" # - "3.3" # - "3.4" # - "3.5" # - "3.5-dev" # 3.5 development branch -# - "3.6" + - "3.6" # - "3.6-dev" # 3.6 development branch # - "3.7-dev" # 3.7 development branch # - "nightly" # currently points to 3.7-dev -matrix: - include: - - python: "2.7" - env: PVERSION=2 - - python: "3.6" - env: PVERSION=3 +#matrix: +# include: +# - python: "2.7" +# env: PVERSION=2 +# - python: "3.6" +# env: PVERSION=3 install: false diff --git a/build.sh b/build.sh index 0e799931..fc04dc21 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/sh -if [[ $PVERSION = 2 ]]; then +set -x + python -m py_compile cps.py python -m py_compile cps/book_formats.py python -m py_compile cps/db.py @@ -10,17 +11,3 @@ python -m py_compile cps/ub.py python -m py_compile cps/uploader.py python -m py_compile cps/web.py python -m py_compile cps.py -fi -if [[ $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 -