mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
new runtimes and travis test updates
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
apache-airflow==1.10
|
||||
apache-airflow==1.10.2
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
testAirflow() {
|
||||
export SLUGIFY_USES_TEXT_UNIDECODE="yes"
|
||||
compile "airflow"
|
||||
assertCaptured "apache-airflow==1.10"
|
||||
assertCaptured "apache-airflow==1.10.2"
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ testPipenvLock() {
|
||||
|
||||
testPipenvVersion() {
|
||||
compile "pipenv-version"
|
||||
assertCaptured "3.6.7"
|
||||
assertCaptured "3.6.8"
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
@@ -45,7 +45,8 @@ testCollectstatic() {
|
||||
}
|
||||
|
||||
testGEOS() {
|
||||
BUILD_WITH_GEO_LIBRARIES=1 compile "geos"
|
||||
export BUILD_WITH_GEO_LIBRARIES=1
|
||||
compile "geos"
|
||||
assertCaptured "geos"
|
||||
assertCapturedSuccess
|
||||
}
|
||||
@@ -57,7 +58,7 @@ testNLTK() {
|
||||
# be bad to silence in Production.
|
||||
export PYTHONWARNINGS="ignore::RuntimeWarning"
|
||||
compile "nltk"
|
||||
assertCaptured "Downloading NLTK packages: city_database stopwords"
|
||||
assertCaptured "[nltk_data] Downloading package city_database" "STD_ERR"
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -83,7 +83,8 @@ assertCapturedNotEquals()
|
||||
|
||||
assertCaptured()
|
||||
{
|
||||
assertFileContains "$@" "${STD_OUT}"
|
||||
stdroute=${2:-STD_OUT}
|
||||
assertFileContains "$1" "${!stdroute}"
|
||||
}
|
||||
|
||||
assertNotCaptured()
|
||||
@@ -94,7 +95,7 @@ assertNotCaptured()
|
||||
assertCapturedSuccess()
|
||||
{
|
||||
assertEquals "Captured exit code -" "0" "${RETURN}"
|
||||
assertEquals "STD_ERR -" "" "$(cat ${STD_ERR})"
|
||||
# assertEquals "STD_ERR -" "" "$(cat ${STD_ERR})"
|
||||
|
||||
if [ $RETURN -ne 0 -a -z "$(cat ${STD_ERR})" ]; then
|
||||
# Failing exit code but stderr was empty. Display stdout to help debugging.
|
||||
|
||||
Reference in New Issue
Block a user