File tree Expand file tree Collapse file tree 3 files changed +14
-22378
lines changed Expand file tree Collapse file tree 3 files changed +14
-22378
lines changed Original file line number Diff line number Diff line change 1
1
# These targets are not files
2
2
.PHONY : tests
3
3
4
- test : test-heroku-18 test-heroku-16
4
+ test : test-heroku-18 test-heroku-16 test-cedar-14
5
5
6
6
check :
7
7
@shellcheck -x bin/compile bin/detect bin/release bin/test-compile bin/utils bin/warnings bin/default_pythons
@@ -10,17 +10,17 @@ check:
10
10
11
11
test-cedar-14 :
12
12
@echo " Running tests in docker (cedar-14)..."
13
- @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;'
13
+ @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 ;'
14
14
@echo " "
15
15
16
16
test-heroku-16 :
17
17
@echo " Running tests in docker (heroku-16)..."
18
- @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;'
18
+ @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 ;'
19
19
@echo " "
20
20
21
21
test-heroku-18 :
22
22
@echo " Running tests in docker (heroku-18)..."
23
- @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;'
23
+ @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 ;'
24
24
@echo " "
25
25
26
26
buildenv-heroku-16 :
Original file line number Diff line number Diff line change @@ -97,6 +97,15 @@ if [ ! "$SKIP_INSTALL" ]; then
97
97
hash -r
98
98
fi
99
99
100
+ # Heroku uses the get-pip utility maintained by the Python community to vendor Pip.
101
+ # https://github.com/pypa/get-pip
102
+ GETPIP=" https://lang-python.s3.amazonaws.com/etc/get-pip.py"
103
+
104
+ if ! curl " ${GETPIP} " -o " $ROOT_DIR /get-pip.py" ; then
105
+ mcount " failure.python.get-pip"
106
+ echo " Failed to pull down get-pip"
107
+ exit 1
108
+ fi
100
109
101
110
# If Pip isn't up to date:
102
111
if [ " $FRESH_PYTHON " ] || [[ ! $( pip --version) == * $PIP_UPDATE * ]]; then
@@ -107,7 +116,7 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
107
116
rm -fr /app/.heroku/python/lib/python* /site-packages/pip-*
108
117
rm -fr /app/.heroku/python/lib/python* /site-packages/setuptools-*
109
118
110
- /app/.heroku/python/bin/python " $ROOT_DIR /vendor/ get-pip.py" pip==" $PIP_UPDATE " & > /dev/null
119
+ /app/.heroku/python/bin/python " $ROOT_DIR /get-pip.py" pip==" $PIP_UPDATE " & > /dev/null
111
120
/app/.heroku/python/bin/pip install " $ROOT_DIR /vendor/setuptools-39.0.1-py2.py3-none-any.whl" & > /dev/null
112
121
fi
113
122
You can’t perform that action at this time.
0 commit comments