fix tests

This commit is contained in:
2017-03-14 11:27:18 -04:00
parent dcfff15151
commit 58e9c84347
2 changed files with 13 additions and 7 deletions
+6 -2
View File
@@ -5,9 +5,12 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
if [[ ! -f $BUILD_DIR/runtime.txt ]]; then
if [[ ! -f Pipfile.lock ]]; then
puts-warn "Pipfile.lock not found!"
else
echo '{}' > Pipfile.lock
fi
if [[ -f Pipfile.lock ]]; then
set +e
PYTHON=$(cat $BUILD_DIR/Pipfile.lock | jq '._meta.requires.python_version' -r) 2>&1 /dev/null
PYTHON=$(cat $BUILD_DIR/Pipfile.lock | jq '._meta.requires.python_version' -r)
set -e
if [ "$PYTHON" = 2.7 ]; then
@@ -17,6 +20,7 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
echo "python-3.6.0" > $BUILD_DIR/runtime.txt
fi
fi
fi
fi
+7 -5
View File
@@ -1,5 +1,11 @@
#!/usr/bin/env bash
testPipenvVersion() {
compile "pipenv-version"
assertCaptured "3.6.0"
assertCapturedSuccess
}
testPipenv() {
compile "pipenv"
assertCapturedSuccess
@@ -21,11 +27,7 @@ testNLTK() {
testPipenvVersion() {
compile "pipenv-version"
assertCaptured "3.6.0"
assertCapturedSuccess
}
testNewlineRuntime() {
compile "newline-runtime"