-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
122 lines (118 loc) · 3.92 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
test_py27_lnx:
tags:
- centos
before_script:
- source /opt/anaconda/anavars2.sh
- source /opt/cuda/cudavars.sh
- rm -f ~/.local/lib/python2.7/site-packages/cadishi.egg-link
- export BASE=`pwd`
- python setup.py develop --user
- export TEST_PYDH=1
- export TEST_CUDH=0
- export TEST_LARGE=1
- export TEST_XLARGE=0
script:
# Run the included unit test cases
- py.test -sv cadishi
# Call the Cadishi CLI by running the trivial included test case.
- mkdir tmp
- cd tmp
- cadishi --help
- cadishi --version
- cadishi example
- cadishi histo
- cd histograms_output
- cadishi unpack histograms.h5
- cadishi merge --output foo.h5 histograms.h5
- cd $BASE
# Test the documentation creation.
- python setup.py build_sphinx
# Test the tarball creation.
- python setup.py sdist --formats=gztar
# Test conda package creation.
# - cd conda
# - ./conda_build.sh
# - cd ..
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
test_py36_lnx:
tags:
- centos
before_script:
- source /opt/anaconda/anavars3.sh
- source /opt/cuda/cudavars.sh
- rm -f ~/.local/lib/python3.6/site-packages/cadishi.egg-link
- export BASE=`pwd`
- python3 setup.py develop --user
- export TEST_PYDH=1
- export TEST_CUDH=0
- export TEST_LARGE=1
# we run the XL tests with Python 2.7 only to save some CI time
- export TEST_XLARGE=0
script:
# Run the included unit test cases
- py.test -sv cadishi
# Call the Cadishi CLI by running the trivial included test case.
- mkdir tmp
- cd tmp
- cadishi --help
- cadishi --version
- cadishi example
- cadishi histo
- cd histograms_output
- cadishi unpack histograms.h5
- cadishi merge --output foo.h5 histograms.h5
- cd $BASE
# Test the documentation creation.
- python3 setup.py build_sphinx
# Test the tarball creation.
- python3 setup.py sdist --formats=gztar
# Test conda package creation.
# - cd conda
# - ./conda_build.sh
# - cd ..
after_script:
- source /opt/anaconda/anavars3.sh
- python3 setup.py develop --user --uninstall || true
- rm -f ~/.local/lib/python3.6/site-packages/cadishi.egg-link
test_py27_mac:
tags:
- mac
before_script:
- source /opt/anaconda/anavars2.sh
- rm -f ~/.local/lib/python2.7/site-packages/cadishi.egg-link
- export BASE=`pwd`
- python setup.py develop --user
- export PATH="$HOME/.local/bin:$PATH"
- export TEST_PYDH=1
- export TEST_CUDH=0
- export TEST_LARGE=0
- export TEST_XLARGE=0
script:
# Run the included unit test cases
- py.test -sv cadishi
# Call the Cadishi CLI by running the trivial included test case.
- mkdir tmp
- cd tmp
- cadishi --help
- cadishi --version
- cadishi example
- cadishi histo
- cd histograms_output
- cadishi unpack histograms.h5
- cadishi merge --output foo.h5 histograms.h5
- cd $BASE
# Test the documentation creation.
- python setup.py build_sphinx
# Test the tarball creation.
- python setup.py sdist --formats=gztar
# Test conda package creation.
# - cd conda
# - ./conda_build.sh
# - cd ..
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