-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.gitlab-ci.yml
59 lines (53 loc) · 1.25 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
stages:
- dependencies
- build
- test
cache:
paths:
- lib
- imageutilities/lib
- gpuNUFFT/CUDA/bin
before_script:
- export COMPUTE_CAPABILITY="5.2"
- export IMAGEUTILITIES_ROOT=`pwd`/imageutilities/
- export CUDA_SDK_ROOT_DIR="/usr/local/cuda/samples/"
- export GPUNUFFT_ROOT_DIR=`pwd`/gpuNUFFT/
- git submodule sync --recursive
- git submodule update --init --recursive --remote
- apt-get update
- apt-get install python-numpy --yes --no-install-recommends
imageutilites-build:
tags:
- ubuntu-16.04,cuda-8.0
stage: dependencies
script:
- rm -r imageutilities/build/*
- cd imageutilities/build
- cmake .. -DWITH_PYTHON=ON
- make
- make install
gpunufft-build:
tags:
- ubuntu-16.04,cuda-8.0
stage: dependencies
script:
- rm -r gpuNUFFT/CUDA/build/*
- cd gpuNUFFT/CUDA/build
- cmake .. -DGEN_MEX_FILES=OFF
- make
pdtoolbox16-build:
tags:
- ubuntu-16.04,cuda-8.0
stage: build
script:
- mkdir -p build
- cd build
- cmake .. -DWITH_GPUNUFFT=ON
- make
pdtoolbox16-pythonTest:
tags:
- ubuntu-16.04,cuda-8.0
stage: test
script:
- cp lib/*.so primaldualtoolbox
- python -c "import primaldualtoolbox; print('Importing primaldualtoolbox done');"