Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
a775b06d
Unverified
Commit
a775b06d
authored
6 years ago
by
Ian Stapleton Cordasco
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #731 from heroku/heroku-18-ci
Add heroku-18 to our Travis CI config
parents
18945ff1
2d290e94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.travis.yml
+5
-0
5 additions, 0 deletions
.travis.yml
Makefile
+5
-0
5 additions, 0 deletions
Makefile
test/fixtures/nltk/runtime.txt
+1
-1
1 addition, 1 deletion
test/fixtures/nltk/runtime.txt
test/run
+17
-3
17 additions, 3 deletions
test/run
tests.sh
+6
-1
6 additions, 1 deletion
tests.sh
with
34 additions
and
5 deletions
.travis.yml
+
5
−
0
View file @
a775b06d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
5
−
0
View file @
a775b06d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
test/fixtures/nltk/runtime.txt
+
1
−
1
View file @
a775b06d
python-2.7.13
\ No newline at end of file
python-3.6.6
This diff is collapsed.
Click to expand it.
test/run
+
17
−
3
View file @
a775b06d
...
...
@@ -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
()
{
compile
"python2"
assertCaptured
"python-2.7.15"
assertCapturedSuccess
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
()
{
...
...
This diff is collapsed.
Click to expand it.
tests.sh
+
6
−
1
View file @
a775b06d
...
...
@@ -13,4 +13,9 @@ fi
if
[[
"
$STACK
"
==
"heroku-16"
]]
;
then
make test-heroku-16
exit
$?
fi
\ No newline at end of file
fi
if
[[
"
$STACK
"
==
"heroku-18"
]]
;
then
make test-heroku-18
exit
$?
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment