set up circle ci

pull/8/head
Konstantin Baierer 3 years ago
parent 6c305de279
commit 5915307667

@ -0,0 +1,28 @@
version: 2
jobs:
build-python36:
docker:
- image: python:3.6
steps:
- checkout
- restore_cache:
keys:
- model-cache
- run: make models
- save_cache:
key: model-cache
paths:
models_eynollah.tar.gz
models_eynollah
- run: make install
- run: make smoke-test
workflows:
version: 2
build:
jobs:
- build-python36
#- build-python37
#- build-python38 # no tensorflow for python 3.8

1
.gitignore vendored

@ -1,3 +1,4 @@
*.egg-info
__pycache__
sbb_newspapers_org_image/pylint.log
models_eynollah*

@ -4,6 +4,7 @@ help:
@echo ""
@echo " Targets"
@echo ""
@echo " models Download and extract models to $(PWD)/models_eynollah"
@echo " install Install with pip"
@echo " install-dev Install editable with pip"
@echo ""
@ -12,6 +13,16 @@ help:
# END-EVAL
# Download and extract models to $(PWD)/models_eynollah
models: models_eynollah
models_eynollah: models_eynollah.tar.gz
tar xf models_eynollah.tar.gz
models_eynollah.tar.gz:
wget 'https://qurator-data.de/eynollah/models_eynollah.tar.gz'
# Install with pip
install:
pip install .
@ -19,3 +30,6 @@ install:
# Install editable with pip
install-dev:
pip install -e .
smoke-test:
eynollah -i tests/resources/kant_aufklaerung_1784_0020.tif -o . -m $(PWD)/models_eynollah

Loading…
Cancel
Save