forked from CloudCompare/CloudCompare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (74 loc) · 2.15 KB
/
.travis.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
sudo: required
dist: bionic
cache: ccache
language: cpp
compiler:
- clang
- gcc
env:
- SCALAR_DOUBLE=ON
- SCALAR_DOUBLE=OFF
install:
- sudo apt-get update -qq
- sudo apt-get install -qy cmake
libqt5svg5-dev libqt5opengl5-dev qt5-default qttools5-dev qttools5-dev-tools
libtbb-dev
libavcodec-dev libavformat-dev libavutil-dev
libboost-program-options-dev libboost-thread-dev
libeigen3-dev
libcgal-dev libcgal-qt5-dev libgdal-dev libpcl-dev
libdlib-dev libswscale-dev libproj-dev libxerces-c-dev xvfb libpdal-dev libjsoncpp-dev
- git submodule init && git submodule update
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release
-DEIGEN_ROOT_DIR=/usr/include/eigen3
-DJSON_ROOT_DIR=/usr/include/jsoncpp
-DCOMPILE_CC_CORE_LIB_WITH_TBB=ON
-DDLIB_ROOT=/usr/include
-DOPTION_USE_DXF_LIB=ON
-DOPTION_USE_SHAPE_LIB=ON
-DOPTION_SCALAR_DOUBLE=$SCALAR_DOUBLE
-DPLUGIN_EXAMPLE_GL=ON
-DPLUGIN_EXAMPLE_IO=ON
-DPLUGIN_EXAMPLE_STANDARD=ON
-DPLUGIN_GL_QEDL=ON
-DPLUGIN_GL_QSSAO=ON
-DPLUGIN_IO_QADDITIONAL=ON
-DPLUGIN_IO_QCORE=ON
-DPLUGIN_IO_QE57=ON
-DPLUGIN_IO_QPHOTOSCAN=ON
-DPLUGIN_IO_QPDAL=ON
-DPLUGIN_STANDARD_QANIMATION=ON
-DPLUGIN_STANDARD_QBROOM=ON
-DPLUGIN_STANDARD_QCANUPO=ON
-DPLUGIN_STANDARD_QCOMPASS=ON
-DPLUGIN_STANDARD_QCSF=ON
-DPLUGIN_STANDARD_QFACETS=ON
-DPLUGIN_STANDARD_QHOUGH_NORMALS=ON
-DPLUGIN_STANDARD_QHPR=ON
-DPLUGIN_STANDARD_QM3C2=ON
-DPLUGIN_STANDARD_QPCV=ON
-DPLUGIN_STANDARD_QPOISSON_RECON=ON
-DPLUGIN_STANDARD_QSRA=ON
-DPLUGIN_STANDARD_QRANSAC_SD=ON
-DPLUGIN_STANDARD_QPCL=ON
-DBUILD_TESTING=ON
..
script:
- if [[ $CXX == "clang++" ]]; then export LD_LIBRARY_PATH=/usr/local/clang/lib:$LD_LIBRARY_PATH; fi
- if [[ $TRAVIS_BRANCH != "beta_builds" ]]; then make -j2 && if [[ $SCALAR_DOUBLE != "ON" ]]; then xvfb-run ctest -V; fi; fi
- cd ..
after_success:
- openssl aes-256-cbc -K $encrypted_d04fcf964026_key -iv $encrypted_d04fcf964026_iv
-in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
services:
- docker
deploy:
on:
branch: beta_builds
condition: "$CC = gcc"
provider: script
script: scripts/linux/snap_deploy.sh $(pwd)
skip_cleanup: true