-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
54 lines (46 loc) · 1.29 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
# -----------------------------------Set Up------------------------------------
variables:
PY_VERSION: 3
TMPDIR: ./tmp
DATADIR: /home/mebner/data/ci/FetalBrain
VENV: pysitk-test-py${PY_VERSION}
ITK_DIR: /mnt/shared/mebner/environment/ITK/ITK_NiftyMIC-python${PY_VERSION}-build
before_script:
# save current folder path
- cwd_dir=$(pwd)
# create virtual environment
- rm -rf ${VENV}
- mypython=$(which python${PY_VERSION})
- virtualenv -p $mypython ${VENV}
- cd ${VENV}
- venv_dir=$(pwd)
- source bin/activate
# print Python version to CI output
- which python
- python --version
# copy ITK_NiftyMIC-build WrapITK to site-packages of python venv
- py_sitepkg=${venv_dir}/lib/python*/site-packages
- cp -v ${ITK_DIR}/Wrapping/Generators/Python/WrapITK.pth ${py_sitepkg}
# run installation
- cd $cwd_dir
- pip install -e .
after_script:
# delete tmp-directory
- rm -rfv ${TMPDIR}
# ----------------------------------Test Jobs----------------------------------
builddocs:
# only:
# - master
script:
- cd doc
- doxygen doxyfile
tags:
- gift-adelie
testjob:
# only:
# - master
script:
# tests
- python -m unittest discover -s "tests" -p "*_test.py"
tags:
- gift-adelie