-
Notifications
You must be signed in to change notification settings - Fork 31
/
config.yml
112 lines (103 loc) · 3.15 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: 2
orbs:
python: circleci/python@2.0.3
jobs:
test-macos:
macos:
xcode: "12.5.1"
# resource_class: macos.x86.medium.gen2
working_directory: ~/ocrd-core
environment:
PIP: pip3
PYTHON: python3
PIP_INSTALL: pip3 install --user
steps:
- checkout
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install imagemagick geos bash opencv
- run: $PIP_INSTALL -U pip setuptools
- run: make install
- run: export PATH="/Users/distiller/Library/Python/3.9/bin:$PATH"; make deps-test test benchmark
test-python38:
docker:
- image: cimg/python:3.8
working_directory: ~/ocrd-core
steps:
- checkout
- run: sudo apt-get -y update
- run: sudo make deps-ubuntu
- run: make install deps-test
- run: make test benchmark
# smoke test to ensure that --editable install works
- run: make install-dev; ocrd --version
test-python39:
docker:
- image: cimg/python:3.9
working_directory: ~/ocrd-core
steps:
- checkout
- run: sudo apt-get -y update
- run: sudo make deps-ubuntu
- run: make install deps-test
- run: make test benchmark
# smoke test to ensure that --editable install works
- run: make install-dev; ocrd --version
test-python310:
docker:
- image: cimg/python:3.10
working_directory: ~/ocrd-core
steps:
- checkout
- run: sudo apt-get -y update
- run: sudo make deps-ubuntu
- run: make install deps-test
- run: make test benchmark
# smoke test to ensure that --editable install works
- run: make install-dev; ocrd --version
test-python311:
docker:
- image: cimg/python:3.11
working_directory: ~/ocrd-core
steps:
- checkout
- run: sudo apt-get -y update
- run: sudo make deps-ubuntu
- run: make install deps-test
- run: make test benchmark
# smoke test to ensure that --editable install works
- run: make install-dev; ocrd --version
deploy:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- checkout
- setup_remote_docker: # https://circleci.com/docs/2.0/building-docker-images/
docker_layer_caching: true
- run: make docker
- run: make docker-cuda
- run:
name: Login to Docker Hub
command: echo "$DOCKERHUB_PASS" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- run: docker push ocrd/core:latest
- run: docker push ocrd/core-cuda:latest
- run: docker tag ocrd/core ocrd/core:$(git describe --tags --abbrev=0)
- run: docker tag ocrd/core-cuda ocrd/core-cuda:$(git describe --tags --abbrev=0)
- run: docker push ocrd/core:$(git describe --tags --abbrev=0)
- run: docker push ocrd/core-cuda:$(git describe --tags --abbrev=0)
workflows:
version: 2
build-master:
jobs:
- deploy:
filters:
branches:
only: master
tags:
only: /^v\d\.\d\d\.\d$/
test-pull-request:
jobs:
- test-python37
- test-python38
- test-python39
- test-python310
- test-python311
# - test-macos