mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
@@ -1 +0,0 @@
|
||||
service_name: jenkins
|
||||
23
Makefile
23
Makefile
@@ -89,9 +89,6 @@ test-requirements:
|
||||
echo "Run 'make freeze-requirements' to update."; exit 1; } \
|
||||
|| { echo "requirements.txt is up to date"; exit 0; }
|
||||
|
||||
.PHONY: coverage
|
||||
coverage: ; ## don't do anything
|
||||
|
||||
.PHONY: prepare-docker-build-image
|
||||
prepare-docker-build-image: generate-version-file ## Prepare the Docker builder image
|
||||
docker build -f docker/Dockerfile \
|
||||
@@ -131,26 +128,6 @@ create-docker-test-db: ## Start the test database in a Docker container
|
||||
postgres:9.5
|
||||
sleep 3
|
||||
|
||||
# FIXME: CIRCLECI=1 is an ugly hack because the coveralls-python library sends the PR link only this way
|
||||
.PHONY: coverage-with-docker
|
||||
coverage-with-docker: prepare-docker-build-image ## Generates coverage report inside a Docker container
|
||||
@docker run -i${DOCKER_TTY} --rm \
|
||||
--name "${DOCKER_CONTAINER_PREFIX}-coverage" \
|
||||
-e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} \
|
||||
-e CIRCLECI=1 \
|
||||
-e CI_NAME=${CI_NAME} \
|
||||
-e CI_BUILD_NUMBER=${BUILD_NUMBER} \
|
||||
-e CI_BUILD_URL=${BUILD_URL} \
|
||||
-e CI_BRANCH=${GIT_BRANCH} \
|
||||
-e CI_PULL_REQUEST=${CI_PULL_REQUEST} \
|
||||
-e http_proxy="${HTTP_PROXY}" \
|
||||
-e HTTP_PROXY="${HTTP_PROXY}" \
|
||||
-e https_proxy="${HTTPS_PROXY}" \
|
||||
-e HTTPS_PROXY="${HTTPS_PROXY}" \
|
||||
-e NO_PROXY="${NO_PROXY}" \
|
||||
${DOCKER_BUILDER_IMAGE_NAME} \
|
||||
make coverage
|
||||
|
||||
.PHONY: clean-docker-containers
|
||||
clean-docker-containers: ## Clean up any remaining docker containers
|
||||
docker rm -f $(shell docker ps -q -f "name=${DOCKER_CONTAINER_PREFIX}") 2> /dev/null || true
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
[](https://requires.io/github/alphagov/notifications-api/requirements/?branch=master)
|
||||
[](https://coveralls.io/github/alphagov/notifications-api?branch=master)
|
||||
|
||||
# GOV.UK Notify API
|
||||
|
||||
Contains:
|
||||
|
||||
@@ -5,7 +5,6 @@ pytest==5.2.4
|
||||
pytest-env==0.6.2
|
||||
pytest-mock==1.11.2
|
||||
pytest-cov==2.8.1
|
||||
coveralls==1.8.2
|
||||
pytest-xdist==1.30.0
|
||||
freezegun==0.3.12
|
||||
requests-mock==1.7.0
|
||||
|
||||
Reference in New Issue
Block a user