-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
46 lines (46 loc) · 2.05 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
test_py27:
# Preparation
# The tests of the CLI makes it necessary to create 'develop --user' installations.
# 1) clean possible remnants of previous develop--user installations
# 2) clone and build Cadishi, requires deploy-key
# 3) build Capriqorn
before_script:
- source /opt/anaconda/anavars2.sh
- export BASE=`pwd`
- rm -f ~/.local/lib/python2.7/site-packages/cadishi.egg-link
- rm -f ~/.local/lib/python2.7/site-packages/capriqorn.egg-link
- git clone [email protected]:MPIBP-Hummer/Cadishi.git
- cd Cadishi
- CAD_CUDA=0 python setup.py develop --user
- cd $BASE
- python setup.py develop --user
script:
# Run the included unit test cases
- py.test capriqorn
# Call the Capriqorn CLI by running the trivial included test case
- mkdir tmp
- cd tmp
- capriq --help
- capriq --version
- capriq example
- capriq preproc
- capriq histo
- capriq postproc
- cd postprocessor_output
- capriq unpack postprocessor.h5
- capriq merge --output foo.h5 postprocessor.h5
# call the parallel pipeline testcases
- capriq preproc ${BASE}/capriqorn/tests/data/test_preprocessor_parallel_success.yaml
# cannot get the following tests to work, gitlab CI seems to detect dying processes
# - capriq preproc ${BASE}/capriqorn/tests/data/test_preprocessor_parallel_child_failure.yaml || [ $? == 1 ]
# - capriq preproc ${BASE}/capriqorn/tests/data/test_preprocessor_parallel_master_failure.yaml || [ $? == 1 ]
- cd $BASE
# Test the documentation creation.
- python setup.py build_sphinx
# Test the tarball creation.
- python setup.py sdist --formats=gztar
after_script:
- source /opt/anaconda/anavars2.sh
- python setup.py develop --user --uninstall || true
- rm -f ~/.local/lib/python2.7/site-packages/cadishi.egg-link
- rm -f ~/.local/lib/python2.7/site-packages/capriqorn.egg-link