Skip to content

Commit

Permalink
Add python-hcl2 dependency (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofenoglio authored Dec 14, 2021
1 parent 38095c2 commit f722bf3
Show file tree
Hide file tree
Showing 7 changed files with 375 additions and 272 deletions.
26 changes: 0 additions & 26 deletions Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ help:
@echo 'Available Commands:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " - \033[36m%-18s\033[0m %s\n", $$1, $$2}'

build-image: ## Build docker image
docker build . -t ${LEVERAGE_TESTING_IMAGE}:${LEVERAGE_TESTING_TAG}

test-unit: ## Run unit tests and create a coverage report
docker run --rm --privileged --mount type=bind,src=$(shell pwd),dst=/leverage -t ${LEVERAGE_TESTING_IMAGE}:${LEVERAGE_TESTING_TAG} pytest --verbose

Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jinja2 = "==3.0.1"
docker = "==5.0.0"
dockerpty = "==0.4.1"
questionary = "==1.9.0"
python-hcl2 = "==3.0.1"
607 changes: 369 additions & 238 deletions Pipfile.lock

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ Integration tests:
bats -r tests/bats
```
### Using docker image
A Dockerfile suited for running all tests is provided along with useful Makefile targets.
A Docker image suitable for running all tests is provided and [available in DockerHub](https://hub.docker.com/r/binbash/leverage-cli-testing).

To build such image run `make build-image`.

To run all tests `make tests`. Alternatively `make test-unit` or `make test-int` for unit or integration tests respectively.
To run all tests, run `make tests`. Alternatively `make test-unit` or `make test-int` for unit or integration tests respectively.

## Release Process
* On every PR, a Github Action workflow is triggered to create/update a release draft.
Expand Down
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ jinja2==3.0.1
ruamel.yaml==0.17.10
docker==5.0.0
dockerpty==0.4.1
questionary==1.9.0
questionary==1.9.0
python-hcl2 == 3.0.1
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ install_requires =
docker == 5.0.0
dockerpty == 0.4.1
questionary == 1.9.0
python-hcl2 == 3.0.1
include_package_data = True

[options.entry_points]
Expand Down

0 comments on commit f722bf3

Please sign in to comment.