forked from Kapernikov/gpu-normal-computation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (41 loc) · 1.26 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
image: ubuntu:artful
variables:
INSTALL_DIR: install
stages:
- build
- run
.run_binary: &run_binary
stage: run
variables:
BINARY: "UNKNOWN"
dependencies:
- build
before_script:
- apt-get update
- apt-get install --assume-yes libpcl-dev libvtk6-dev libboost-dev ocl-icd-opencl-dev libpocl-dev # Use *-dev versions of the required packaged so that we do not have to list the version explicitly
script:
- echo "Running binary = ${BINARY}"
- "${BINARY}"
build:
stage: build
variables:
MODE: Release
before_script:
- apt-get update
- apt-get install --assume-yes git cmake g++ make libpcl-dev libvtk6-dev libboost-dev ocl-icd-opencl-dev
script:
- cmake -H. -Bbuild/${MODE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=${MODE}
- make -C build/${MODE} --jobs 4
- make -C build/${MODE} install
artifacts:
expire_in: 10 days
paths:
- ${INSTALL_DIR}/*
test:
<<: *run_binary
variables:
BINARY: "${INSTALL_DIR}/bin/test_normal_computation"
benchmark:
<<: *run_binary
variables:
BINARY: "${INSTALL_DIR}/bin/benchmark_normal_computation"