File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 8
8
# Venv
9
9
buildpack /*
10
10
11
- builds /dockerenv
11
+ builds /dockerenv.staging *
12
+ builds /dockerenv.production
Original file line number Diff line number Diff line change 8
8
@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
9
9
@shellcheck -x bin/steps/hooks/*
10
10
11
+ test-staging :
12
+ @echo " Running tests against staged binaries..."
13
+ @docker run -v $(shell pwd) :/buildpack:ro --rm -it -e " STACK=heroku-16" -e " TEST_STAGED_S3_BINARIES=1" heroku/heroku:16-build bash -c ' cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
14
+ @echo " "
15
+ @echo " Running tests in docker (heroku-18)..."
16
+ @docker run -v $(shell pwd) :/buildpack:ro --rm -it -e " STACK=heroku-18" -e " TEST_STAGED_S3_BINARIES=1" heroku/heroku:18-build bash -c ' cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
17
+ @echo " "
18
+
11
19
test-heroku-16 :
12
20
@echo " Running tests in docker (heroku-16)..."
13
21
@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;'
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ VENDOR_URL="https://lang-python.s3.amazonaws.com/$STACK"
43
43
if [[ -n ${BUILDPACK_VENDOR_URL:- } ]]; then
44
44
VENDOR_URL=" $BUILDPACK_VENDOR_URL "
45
45
fi
46
+
47
+ # Build binaries (python runtimes, etc) in the /staging/ directory on S3. Test
48
+ these binaries for compatibility when passed this environment variable.
49
+ if [ " $TEST_STAGED_S3_BINARIES " == " 1" ]; then
50
+ echo " Testing staged binaries..."
51
+ VENDOR_URL=" https://lang-python.s3.amazonaws.com/staging/$STACK "
52
+ fi
46
53
export VENDOR_URL
47
54
48
55
# Default Python Versions
You can’t perform that action at this time.
0 commit comments