mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
56 lines
2.4 KiB
Makefile
56 lines
2.4 KiB
Makefile
# These targets are not files
|
|
.PHONY: tests
|
|
|
|
test: test-heroku-18 test-heroku-16 test-cedar-14
|
|
|
|
check:
|
|
@shellcheck -x bin/compile bin/detect bin/release bin/test-compile bin/utils bin/warnings bin/default_pythons
|
|
@shellcheck -x bin/steps/collectstatic bin/steps/eggpath-fix bin/steps/eggpath-fix2 bin/steps/gdal bin/steps/geo-libs bin/steps/mercurial bin/steps/nltk bin/steps/pip-install bin/steps/pip-uninstall bin/steps/pipenv bin/steps/pipenv-python-version bin/steps/pylibmc bin/steps/python
|
|
@shellcheck -x bin/steps/hooks/*
|
|
|
|
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-deps; test/run-features; test/run-versions;'
|
|
@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-deps; test/run-features; test/run-versions;'
|
|
@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-deps; test/run-features; test/run-versions;'
|
|
@echo ""
|
|
|
|
buildenv-heroku-16:
|
|
@echo "Creating build environment (heroku-16)..."
|
|
@echo
|
|
@docker build --pull -f $(shell pwd)/builds/heroku-16.Dockerfile -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
|
|
|
|
buildenv-heroku-18:
|
|
@echo "Creating build environment (heroku-18)..."
|
|
@echo
|
|
@docker build --pull -f $(shell pwd)/builds/heroku-18.Dockerfile -t python-buildenv-heroku-18 .
|
|
@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-18
|
|
|
|
tools:
|
|
git clone https://github.com/kennethreitz/pip-pop.git
|
|
mv pip-pop/bin/* vendor/pip-pop/
|
|
rm -fr pip-pop
|