Check spec directory exists before reading spec files (#709)

* Check spec directory exists before reading spec files
* Fix spec example
This commit is contained in:
Ta-Ching Chen
2018-05-31 03:01:40 +08:00
committed by GitHub
parent 6eec55223d
commit fedf6b6e5b
3 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
set -e
# check syntax
python -m compileall -l ${SRC_PKG}
python3 -m compileall -l ${SRC_PKG}
# install deps
pip install -r ${SRC_PKG}/requirements.txt -t ${SRC_PKG} && cp -r ${SRC_PKG} ${DEPLOY_PKG}
pip3 install -r ${SRC_PKG}/requirements.txt -t ${SRC_PKG} && cp -r ${SRC_PKG} ${DEPLOY_PKG}
+2 -2
View File
@@ -7,6 +7,6 @@ spec:
version: 2
builder:
command: build
image: fission/python-build-env-2.7:0.4.0rc
image: fission/python-builder
runtime:
image: fission/python-env-2.7:0.4.0rc
image: fission/python-env