Compare commits

...

11 Commits

Author SHA1 Message Date
Casey 41e0f64252 Merge pull request #782 from heroku/next-release
Test updates
2018-11-15 11:06:27 -06:00
Casey Faist b3988a565a remove template runtimes to cut down on scope creep 2018-11-15 10:39:19 -06:00
Casey Faist 0437a6e84f update latest python 2 in pipenv-version step 2018-11-15 09:37:43 -06:00
Casey Faist 88a5ba5d39 add test for 2.7 pipenv install 2018-11-15 09:09:51 -06:00
Casey Faist 3434972e32 update hatchet expected version 2018-11-15 08:57:57 -06:00
Casey Faist 1dfef44085 update default in pipenv test 2018-11-14 17:36:59 -06:00
Casey Faist 2ffb10da34 update latest vars in compile 2018-11-14 16:57:02 -06:00
Casey Faist 23999846ad update 3.7 tests typo 2018-11-14 16:41:38 -06:00
Casey Faist 8d1ebf7288 bump default 3.6 version 2018-11-14 16:24:46 -06:00
Casey Faist f2165aaac6 update test fixtures for new python runtimes 2018-11-13 16:11:14 -06:00
Casey Faist 05492e132a add next runtimes 2018-11-13 15:34:07 -06:00
24 changed files with 118 additions and 45 deletions
+3 -3
View File
@@ -49,9 +49,9 @@ export VENDOR_URL
# These variables are used to specify which versions of Python to install by default, # These variables are used to specify which versions of Python to install by default,
# as well as prompt the user to upgrade if they are using an unsupported version. # as well as prompt the user to upgrade if they are using an unsupported version.
# Note: When 3.7 lands, I recommend switching to LATEST_36 and LATEST_37. # Note: When 3.7 lands, I recommend switching to LATEST_36 and LATEST_37.
DEFAULT_PYTHON_VERSION="python-3.6.6" DEFAULT_PYTHON_VERSION="python-3.6.7"
LATEST_36="python-3.6.6" LATEST_36="python-3.6.7"
LATEST_37="python-3.7.0" LATEST_37="python-3.7.1"
LATEST_35="python-3.5.6" LATEST_35="python-3.5.6"
LATEST_34="python-3.4.9" LATEST_34="python-3.4.9"
LATEST_27="python-2.7.15" LATEST_27="python-2.7.15"
+1 -2
View File
@@ -19,7 +19,7 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
if [[ "$PYTHON" == "null" ]]; then if [[ "$PYTHON" == "null" ]]; then
PYTHON=$(jq -r '._meta.requires.python_version' "$BUILD_DIR/Pipfile.lock") PYTHON=$(jq -r '._meta.requires.python_version' "$BUILD_DIR/Pipfile.lock")
if [ "$PYTHON" = 2.7 ]; then if [ "$PYTHON" = 2.7 ]; then
echo "$LATEST_2" > "$BUILD_DIR/runtime.txt" echo "$LATEST_27" > "$BUILD_DIR/runtime.txt"
fi fi
if [ "$PYTHON" = 3.6 ]; then if [ "$PYTHON" = 3.6 ]; then
echo "$LATEST_36" > "$BUILD_DIR/runtime.txt" echo "$LATEST_36" > "$BUILD_DIR/runtime.txt"
@@ -33,4 +33,3 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
fi fi
fi fi
fi fi
+1 -1
View File
@@ -4,7 +4,7 @@ describe "Python!!!!!!!!!!!" do
it "🐍" do it "🐍" do
Hatchet::Runner.new('python-getting-started', stack: DEFAULT_STACK).deploy do |app| Hatchet::Runner.new('python-getting-started', stack: DEFAULT_STACK).deploy do |app|
expect(app.output).to match(/Installing pip/) expect(app.output).to match(/Installing pip/)
expect(app.run('python -V')).to match(/3.6.6/) expect(app.run('python -V')).to match(/3.6.7/)
end end
end end
end end
+1 -1
View File
@@ -6,4 +6,4 @@ verify_ssl = true
requests = "*" requests = "*"
[requires] [requires]
python_version = "3.6" python_version = "3.6"
+11
View File
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
[requires]
python_version = "2.7"
+20
View File
@@ -0,0 +1,20 @@
{
"_meta": {
"hash": {
"sha256": "ae4bdd7d4157baab65ae9d0e8389a6011e6b640995372c45ec81fa5d1ddfae9f"
},
"pipfile-spec": 6,
"requires": {
"python_version": "2.7"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {},
"develop": {}
}
+1
View File
@@ -0,0 +1 @@
requests
+1
View File
@@ -0,0 +1 @@
python-2.7.16
+1
View File
@@ -0,0 +1 @@
python-3.4.10
+1
View File
@@ -0,0 +1 @@
python-3.5.7
+1 -1
View File
@@ -1 +1 @@
python-3.6.6 python-3.6.7
-1
View File
@@ -1 +0,0 @@
python-3.6.7
+1
View File
@@ -0,0 +1 @@
flask
+1
View File
@@ -0,0 +1 @@
python-3.6.8
+1 -1
View File
@@ -1 +1 @@
python-3.7.0 python-3.7.1
-1
View File
@@ -1 +0,0 @@
python-3.7.1
+1
View File
@@ -0,0 +1 @@
flask
+1
View File
@@ -0,0 +1 @@
python-3.7.2
+1
View File
@@ -0,0 +1 @@
requests
+1
View File
@@ -0,0 +1 @@
python-3.7.0
+1
View File
@@ -0,0 +1 @@
flask
+68 -34
View File
@@ -19,10 +19,15 @@ testPipenvLock() {
testPipenvVersion() { testPipenvVersion() {
compile "pipenv-version" compile "pipenv-version"
assertCaptured "3.6.6" assertCaptured "3.6.7"
assertCapturedSuccess assertCapturedSuccess
} }
testPipenvVersion2() {
compile "pipenv-version2"
assertCaptured "2.7.15"
assertCapturedSuccess
}
testPipenvFullVersion() { testPipenvFullVersion() {
compile "pipenv-full-version" compile "pipenv-full-version"
assertCaptured "3.6.3" assertCaptured "3.6.3"
@@ -87,6 +92,18 @@ testPylibmc() {
assertCapturedSuccess assertCapturedSuccess
} }
testPythonDefault() {
compile "pythonDefault"
assertCaptured "python-3.6.7"
assertCapturedSuccess
}
testPython2() {
compile "python2"
assertCaptured "python-2.7.15"
assertCapturedSuccess
}
testPython2_warn() { testPython2_warn() {
compile "python2_warn" compile "python2_warn"
if [[ $STACK = "heroku-18" ]]; then if [[ $STACK = "heroku-18" ]]; then
@@ -98,31 +115,41 @@ testPython2_warn() {
fi fi
} }
testPython2() { testPython2_fail() {
compile "python2" compile "python2_fail"
assertCaptured "python-2.7.15" assertCaptured "Aborting"
assertCapturedSuccess assertCapturedError
}
testPython3_4() {
compile "python3_4"
assertCaptured "python-3.4.9"
assertCapturedSuccess
} }
# This fail
testPython3_4_warn() { testPython3_4_warn() {
compile "python3_4_warn" compile "python3_4_warn"
if [[ $STACK = "cedar-14" ]]; then if [[ $STACK = "cedar-14" ]]; then
assertCaptured "python-3.4.0" assertCaptured "python-3.4.0"
assertCaptured "security update!"
assertCapturedSuccess assertCapturedSuccess
else else
assertCapturedError assertCapturedError
fi fi
} }
# This fail testPython3_4_fail() {
testPython3_4() { compile "python3_4_fail"
compile "python3_4" assertCaptured "Aborting"
assertCaptured "python-3.4.9" assertCapturedError
assertCapturedError }
testPython3_5() {
compile "python3_5"
assertCaptured "python-3.5.6"
assertCapturedSuccess
} }
# This fail
testPython3_5_warn() { testPython3_5_warn() {
compile "python3_5_warn" compile "python3_5_warn"
if [[ $STACK = "cedar-14" ]]; then if [[ $STACK = "cedar-14" ]]; then
@@ -134,14 +161,18 @@ testPython3_5_warn() {
fi fi
} }
# This will fail testPython3_5_fail() {
testPython3_5() { compile "python3_5_fail"
compile "python3_5" assertCaptured "Aborting"
assertCaptured "python-3.5.6" assertCapturedError
assertCapturedError }
testPython3_6() {
compile "python3_6"
assertCaptured "python-3.6.7"
assertCapturedSuccess
} }
# This will warn
testPython3_6_warn() { testPython3_6_warn() {
compile "python3_6_warn" compile "python3_6_warn"
assertCaptured "python-3.6.5" assertCaptured "python-3.6.5"
@@ -149,17 +180,10 @@ testPython3_6_warn() {
assertCapturedSuccess assertCapturedSuccess
} }
testPython3_6() { testPython3_6_fail() {
compile "python3_6" compile "python3_6_fail"
assertCaptured "python-3.6.6" assertCaptured "Aborting"
assertCapturedSuccess assertCapturedError
}
# This will fail
testPython3_6_7() {
compile "python3_6_7"
assertCaptured "python-3.6.7"
assertCapturedError
} }
testPython3_7() { testPython3_7() {
@@ -167,15 +191,25 @@ testPython3_7() {
if [[ $STACK = "cedar-14" ]]; then if [[ $STACK = "cedar-14" ]]; then
assertCapturedError assertCapturedError
else else
assertCaptured "python-3.7.0" assertCaptured "python-3.7.1"
assertCapturedSuccess assertCapturedSuccess
fi fi
} }
# This will fail testPython3_7_warn() {
testPython3_7_1() { compile "python3_7_warn"
compile "python3_7_1" if [[ $STACK = "cedar-14" ]]; then
assertCaptured "python-3.7.1" assertCapturedError
else
assertCaptured "python-3.7.0"
assertCaptured "security update!"
assertCapturedSuccess
fi
}
testPython3_7_fail() {
compile "python3_7_fail"
assertCaptured "Aborting"
assertCapturedError assertCapturedError
} }