-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
91 lines (81 loc) · 3.28 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
# Gitlab waits until all jobs for a stage are completed before moving to next
# stage, so using stages for Windows/Linux builds would wait until the other is
# finished before continuing.
#
# Perhaps relevant in future https://gitlab.com/gitlab-org/gitlab-ce/issues/47063
variables:
GIT_SUBMODULE_STRATEGY: recursive
CMAKE_ARGS_WINDOWS: '-DCMAKE_GENERATOR_PLATFORM=x64 -DCeres_DIR="C:/Program Files/Ceres" -DPORTAUDIO_INCLUDE_DIRS="C:/Build/src/portaudio/include" -DPORTAUDIO_LIBRARY="C:/Build/bin/portaudio/Release/portaudio_x64.lib" -DPYLON_DIR="C:/Program Files/Basler/pylon 6/Development" -DOpenCV_DIR="C:/Build/bin/opencv/install" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2" -DWITH_OPENVR=TRUE -DWITH_CERES=TRUE'
#stages:
# - all
# - deploy
#### Linux
build:
tags:
- linux
variables:
FTL_LIB: ../../build/SDK/C/libftl-dev.so
LD_LIBRARY_PATH: /opt/pylon/lib/
# before_script:
# - export DEBIAN_FRONTEND=noninteractive
# - apt-get update -qq && apt-get install -y -qq g++ cmake git
# - apt-get install -y -qq libopencv-dev libgoogle-glog-dev liburiparser-dev libreadline-dev libmsgpack-dev uuid-dev
script:
- mkdir build
- cd build
- /snap/bin/cmake .. -GNinja -DCMAKE_CXX_FLAGS="-fdiagnostics-color" -DWITH_OPTFLOW=TRUE -DUSE_CPPCHECK=FALSE -DBUILD_CALIBRATION=TRUE -DWITH_CERES=TRUE -DCMAKE_BUILD_TYPE=Release -DCPACK_GENERATOR=DEB
- ninja
- ninja package
- ctest --output-on-failure
# - cd ../SDK/Python
# - python3 -m unittest discover test
#webserver-deploy:
# only:
# - master
# stage: deploy
# tags:
# - linux
# variables:
# NODE_SERVER: '10.0.0.9'
# script:
# - npm install web-service
# - browserify web-service/public/js/index.js -o web-service/public/js/bundle.js
# - rsync -vr --delete web-service/ nodejs@${NODE_SERVER}:/srv/nodejs/web-service
# - ssh nodejs@${NODE_SERVER} -- "npm install web-service && pm2 restart web-service"
# - doxygen
# - rsync -vr --delete doc/ nodejs@${NODE_SERVER}:/srv/nodejs/doc
### Windows
#.build-windows: &build-windows
# - call vcvars64.bat
# - mkdir build
# - cd build
# - cmake %CMAKE_ARGS% %CMAKE_ARGS_WINDOWS% -DREALSENSE_DIR="C:/Program Files (x86)/Intel RealSense SDK 2.0" -DOPENVR_DIR="C:/Program Files (x86)/OpenVRSDK" -DOPUS_DIR="C:/Program Files (x86)/Opus" ..
# - devenv ftl.utu.fi.sln /build Release
# - rmdir /q /s "%DEPLOY_DIR%/%CI_COMMIT_REF_SLUG%"
# - mkdir "%DEPLOY_DIR%/%CI_COMMIT_REF_SLUG%"
# - 'copy "applications\vision\Release\voltu-vision.exe" "%DEPLOY_DIR%\%CI_COMMIT_REF_SLUG%"'
# - 'copy "applications\gui2\Release\voltu-ui.exe" "%DEPLOY_DIR%\%CI_COMMIT_REF_SLUG%"'
#windows-vision:
# except:
# - master
# stage: all
# variables:
# CMAKE_ARGS: '-DENABLE_PROFILER=TRUE -DWITH_OPTFLOW=TRUE -DBUILD_VISION=TRUE -DBUILD_CALIBRATION=FALSE -DBUILDRECONSTRUCT=FALSE -DBUILDRENDERER=FALSE -DBUILD_TESTING=FALSE -DBUILD_TESTS=FALSE'
# DEPLOY_DIR: 'C:/Shared/AutoDeploy'
# tags:
# - win
# script:
# - *build-windows
#windows-master:
# only:
# - master
# stage: all
# variables:
# CMAKE_ARGS: '-DWITH_OPTFLOW=TRUE'
# DEPLOY_DIR: 'C:/Shared/AutoDeploy'
# tags:
# - win
# script:
# - *build-windows
# - set PATH=%PATH%;C:/Shared/Deploy
# - ctest --output-on-failure --timeout 60