Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
74873b5b
Unverified
Commit
74873b5b
authored
Jul 10, 2018
by
Ian Stapleton Cordasco
Committed by
GitHub
Jul 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into bug/728
parents
731876d6
a775b06d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
5 deletions
+34
-5
.travis.yml
.travis.yml
+5
-0
Makefile
Makefile
+5
-0
runtime.txt
test/fixtures/nltk/runtime.txt
+1
-1
run
test/run
+17
-3
tests.sh
tests.sh
+6
-1
No files found.
.travis.yml
View file @
74873b5b
...
...
@@ -9,6 +9,11 @@ jobs:
-
PATH="/tmp/shellcheck-latest:$PATH"
script
:
make check
-
stage
:
"
Stack
Tests"
services
:
docker
env
:
STACK=heroku-18
script
:
./tests.sh
-
stage
:
"
Stack
Tests"
services
:
docker
env
:
STACK=heroku-16
...
...
Makefile
View file @
74873b5b
...
...
@@ -18,6 +18,11 @@ test-heroku-16:
@
docker run
-v
$(
shell
pwd
)
:/buildpack:ro
--rm
-it
-e
"STACK=heroku-16"
heroku/heroku:16-build bash
-c
'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
@
echo
""
test-heroku-18
:
@
echo
"Running tests in docker (heroku-18)..."
@
docker run
-v
$(
shell
pwd
)
:/buildpack:ro
--rm
-it
-e
"STACK=heroku-18"
heroku/heroku:18-build bash
-c
'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
@
echo
""
buildenv-heroku-16
:
@
echo
"Creating build environment (heroku-16)..."
@
echo
...
...
test/fixtures/nltk/runtime.txt
View file @
74873b5b
python-2.7.13
\ No newline at end of file
python-3.6.6
test/run
View file @
74873b5b
...
...
@@ -39,6 +39,11 @@ testGEOS() {
}
testNLTK
()
{
# NOTE: This is a RuntimeWarning emitted by Python 3's runpy.py script
# which is what is used when you call `python -m <module>`. This is due to
# how nltk imports things. It's not actually an error, but it would probably
# be bad to silence in Production.
export
PYTHONWARNINGS
=
"ignore::RuntimeWarning"
compile
"nltk"
assertCaptured
"Downloading NLTK packages: city_database stopwords"
assertCapturedSuccess
...
...
@@ -76,9 +81,18 @@ testPylibmc() {
}
testPython2
()
{
if
[[
"
$STACK
"
==
"heroku-16"
]]
||
[[
"
$STACK
"
==
"cedar-14"
]]
;
then
compile
"python2"
assertCaptured
"python-2.7.15"
assertCapturedSuccess
fi
}
testNoPython2
()
{
if
[[
"
$STACK
"
==
"heroku-18"
]]
;
then
compile
"python2"
assertCapturedError
fi
}
testPython3
()
{
...
...
tests.sh
View file @
74873b5b
...
...
@@ -14,3 +14,8 @@ if [[ "$STACK" == "heroku-16" ]]; then
make test-heroku-16
exit
$?
fi
if
[[
"
$STACK
"
==
"heroku-18"
]]
;
then
make test-heroku-18
exit
$?
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment