-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
66 lines (57 loc) · 1.56 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
image: $CONTAINER_TEST_IMAGE
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/$CI_PROJECT_PATH:$CI_COMMIT_REF_NAME
stages:
- build_docker
- testing
# - demos
- release
build_docker:
image: docker
stage: build_docker
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab-registry.mpcdf.mpg.de
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
test_gcc:
stage: testing
script:
- python3 -m build --sdist
- 'tar xvzf dist/ducc0*.tar.gz'
- 'cd ducc0-* && python3 -m pip install --user --break-system-packages . && python3 -m pytest -q python/test'
test_clang:
stage: testing
script:
- python3 setup.py sdist
- 'tar xvzf dist/ducc0*.tar.gz'
- 'cd ducc0-* && CC=clang CXX=clang++ python3 -m pip install --user --break-system-packages . && python3 -m pytest -q python/test'
test_rust:
stage: testing
image: rust:latest
script:
- cd rust && cargo build
#wgridding_demo:
# stage: demos
# script:
# - python3 -m pip install --user --break-system-packages . && python3 python/demos/wgridder_python_implementations.py
release:
stage: release
script:
- python3 -m build --sdist
- 'mv dist/*.tar.gz .'
artifacts:
paths:
- '*.tar.gz'
pages:
stage: release
script:
- DUCC0_OPTIMIZATION=none python3 -m pip install --user --break-system-packages .
- 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