Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from jamesob/jamesob-22-01-single-file
Remove compilation step
- Loading branch information
Showing
19 changed files
with
172 additions
and
3,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Dockerfile for running tests/lints | ||
FROM docker.io/library/python:latest | ||
|
||
WORKDIR /src | ||
COPY ./requirements-dev.txt . | ||
RUN pip install -r requirements-dev.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
install: | ||
install -m755 coldcore /usr/local/bin/coldcore | ||
|
||
coldcore: | ||
./bin/compile | ||
docker-build: | ||
docker build --tag coldcore/test . | ||
|
||
test: | ||
pytest src/coldcore | ||
test: docker-build | ||
docker run -v ./coldcore:/src/coldcore.py -e PYTHONPATH=/src -v ./:/src:ro coldcore/test pytest -vv --color=yes test/ | ||
|
||
.PHONY: test | ||
lint: docker-build | ||
docker run --rm -v ./:/src:ro coldcore/test flake8 coldcore | ||
docker run --rm -v ./:/src:ro coldcore/test black --check coldcore | ||
docker run --rm -v ./:/src:ro coldcore/test mypy coldcore | ||
|
||
.PHONY: docker-build lint test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.