-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
79 lines (76 loc) · 2.34 KB
/
.gitlab-ci.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
pages:
image: python:3.8-buster
before_script:
- pip install requests setuptools wheel Cython numpy build
- mkdir ./opt
- python ./scripts/downloader.py
- ls ./opt
- pip install .
- python3 -m build --wheel
- python3 -m pip install ./dist/tangy*.whl --no-deps
- pip install mkdocs mkdocs-material mkdocstrings[python] mkdocstrings-python mkdoxy pymdown-extensions
stage: deploy
script:
- mkdocs build --site-dir public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
# NOTE: this works, commented out for now
# linux:
# image: python:3.9.13
# # make a docker daemon available for cibuildwheel to use
# services:
# - name: docker:dind
# entrypoint: ["env", "-u", "DOCKER_HOST"]
# command: ["dockerd-entrypoint.sh"]
# variables:
# DOCKER_HOST: tcp://docker:2375/
# DOCKER_DRIVER: overlay2
# # See https://github.com/docker-library/docker/pull/166
# DOCKER_TLS_CERTDIR: ""
# script:
# - curl -sSL https://get.docker.com/ | sh
# - python -m pip install cibuildwheel==2.17.0
# - cibuildwheel --output-dir wheelhouse
# artifacts:
# paths:
# - wheelhouse/
# FIX: unknown if working, would need access to macos runners
# macos:
# image: macos-13-xcode-14
# # make a docker daemon available for cibuildwheel to use
# services:
# - name: docker:dind
# entrypoint: ["env", "-u", "DOCKER_HOST"]
# command: ["dockerd-entrypoint.sh"]
# variables:
# DOCKER_HOST: tcp://docker:2375/
# DOCKER_DRIVER: overlay2
# # See https://github.com/docker-library/docker/pull/166
# DOCKER_TLS_CERTDIR: ""
# script:
# - curl -sSL https://get.docker.com/ | sh
# - python -m pip install cibuildwheel==2.17.0
# - git submodule update --init
# - cibuildwheel --output-dir wheelhouse --platform macos
# artifacts:
# paths:
# - wheelhouse/
# tags:
# - saas-macos-medium-m1
# NOTE: this works, commented out for now
#windows:
# image: mcr.microsoft.com/windows/servercore:1809
# before_script:
# - choco install python -y --version 3.9.13
# - choco install git.install -y
# - py -m pip install cibuildwheel==2.17.0
# script:
# - py -m cibuildwheel --output-dir wheelhouse --platform windows
# artifacts:
# paths:
# - wheelhouse/
# tags:
# - saas-windows-medium-amd64