-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
49 lines (43 loc) · 1.07 KB
/
.gitlab-ci.yml
File metadata and controls
49 lines (43 loc) · 1.07 KB
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
image: python:latest
stages:
- testing
- release
before_script:
- apt-get update
- pip install build pytest-xdist
test_gcc:
stage: testing
script:
- python3 -m build --sdist
- 'tar xvzf dist/ducc0*.tar.gz'
- 'cd ducc0-* && pip install . && pytest -n auto -q python/test'
test_clang:
stage: testing
script:
- DEBIAN_FRONTEND=noninteractive apt-get install -y clang
- python3 -m build --sdist
- 'tar xvzf dist/ducc0*.tar.gz'
- 'cd ducc0-* && CC=clang CXX=clang++ pip install . && pytest -n auto -q python/test'
release:
stage: release
script:
- python3 -m build --sdist
- 'mv dist/*.tar.gz .'
artifacts:
paths:
- '*.tar.gz'
pages:
stage: release
script:
- DEBIAN_FRONTEND=noninteractive apt-get install -y doxygen graphviz
- pip install sphinx pydata-sphinx-theme
- DUCC0_OPTIMIZATION=none pip install .
- make -C doc html
- 'cd src/doc && doxygen Doxyfile && cd ../..'
- mv doc/build/html public
- mv src/doc/build/html public/cpp
artifacts:
paths:
- public
only:
- ducc0