diff --git a/Makefile b/Makefile index 6a09cb0..53f9a97 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,21 @@ check: @shellcheck -x bin/steps/hooks/* test-staging: - @echo "Running tests against staged binaries..." + @echo "Running tests against staged binaries (cedar-14)..." + @docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=cedar-14" -e "TEST_STAGED_S3_BINARIES=1" heroku/cedar-14 bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;' + @echo "" + @echo "Running tests against staged binaries (heroku-16)..." @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;' @echo "" - @echo "Running tests in docker (heroku-18)..." + @echo "Running tests against staged binaries (heroku-18)..." @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;' @echo "" +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;' diff --git a/builds/cedar-14.Dockerfile b/builds/cedar-14.Dockerfile index 982a9d7..ea11542 100644 --- a/builds/cedar-14.Dockerfile +++ b/builds/cedar-14.Dockerfile @@ -10,6 +10,6 @@ ENV WORKSPACE_DIR="/app/builds" \ RUN apt-get update && apt-get install -y python-pip && rm -rf /var/lib/apt/lists/* COPY requirements.txt /app/ -RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt +RUN pip install -r /app/requirements.txt COPY . /app