-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
60 lines (52 loc) · 1.38 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
image: $CONTAINER_TEST_IMAGE
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME
stages:
- build_docker
- testing
# - demos
- release
build_docker:
image: docker
stage: build_docker
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
test_gcc:
stage: testing
script:
- python3 setup.py sdist
- 'tar xvzf dist/ducc0*.tar.gz'
- 'cd ducc0-* && python3 setup.py install --user && 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 setup.py install --user && python3 -m pytest -q python/test'
#wgridding_demo:
# stage: demos
# script:
# - python3 setup.py install --user -f && python3 python/demos/wgridder_python_implementations.py
release:
stage: release
script:
- python3 setup.py sdist
- 'mv dist/*.tar.gz .'
artifacts:
paths:
- '*.tar.gz'
pages:
stage: release
script:
- DUCC0_OPTIMIZATION=none python3 -m pip install --user .
- 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