mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
2512694df9
* fixed the bug for pypy-5.8.0 * cleanup makefile Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * allow builds to happen when capitalization is used Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * restore behavior Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * make makefile default to heroku-16 * test geos libraries Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
# These targets are not files
|
|
.PHONY: tests
|
|
|
|
test: test-heroku-16
|
|
|
|
test-cedar-14:
|
|
@echo "Running tests in docker (cedar-14)..."
|
|
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=cedar-14" heroku/cedar:14 bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
|
|
@echo ""
|
|
|
|
test-heroku-16:
|
|
@echo "Running tests in docker (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 ""
|
|
|
|
buildenv-heroku-16:
|
|
@echo "Creating build environment (heroku-16)..."
|
|
@echo
|
|
@docker build --pull -t python-buildenv-heroku-16 .
|
|
@echo
|
|
@echo "Usage..."
|
|
@echo
|
|
@echo " $$ export AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar # Optional unless deploying"
|
|
@echo " $$ bob build runtimes/python-2.7.13"
|
|
@echo " $$ bob deploy runtimes/python-2.7.13"
|
|
@echo
|
|
@docker run -it --rm python-buildenv-heroku-16
|
|
|
|
tools:
|
|
git clone https://github.com/kennethreitz/pip-pop.git
|
|
mv pip-pop/bin/* vendor/pip-pop/
|
|
rm -fr pip-pop
|