This repository has been archived by the owner on Dec 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
58 lines (56 loc) · 2.06 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
language: cpp
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
before_install:
- export CXX="g++-4.9"
- export CC="gcc-4.9"
- mkdir testData && cd testData
- svn --no-auth-cache export --username $TESTUSER --password $TESTPW https://github.com/3drepo/tests/trunk/cplusplus
- cd ../
- echo ============ BOOST INSTALL =============
- sudo add-apt-repository -y ppa:boost-latest/ppa
- sudo apt-get update
- sudo apt-get install libboost1.55-all-dev
- echo ============ BOUNCER INSTALL =============
- git clone https://github.com/3drepo/3drepobouncer.git
- tar -zxvf testData/cplusplus/bouncer/ext_libs/mongo-cxx-1.1.0.tgz
- tar -zxvf testData/cplusplus/bouncer/ext_libs/assimp-install.tgz
- tar -zxvf testData/cplusplus/bouncer/ext_libs/occt.tgz
- tar -zxvf testData/cplusplus/bouncer/ext_libs/ifcopenshell.tgz
- sudo apt-get install libvtk5-dev libxmu-dev libxi-dev
- export MONGO_ROOT=$PWD/mongo-cxx-1.1.0
- export ASSIMP_ROOT=$PWD/assimp-install
- export OCCT_ROOT=$PWD/occt-install
- export IFCOPENSHELL_ROOT=$PWD/ifcopenshell
- cd 3drepobouncer
- cmake -DREPO_BUILD_CLIENT=OFF -DREPO_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release .
- sudo make -j2 install
- cd ../
- echo =============== QT INSTALL ===============
- sudo apt-add-repository -y ppa:beineri/opt-qt551
- sudo apt-get -qq update
- sudo apt-get -qq install qt55tools qt55svg qt55webkit qt55base qt55quick1 qt55x11extras
- sudo cp g++-base.conf /opt/qt55/mkspecs/common
- export QTDIR=/opt/qt55
- export PATH=$QTDIR/bin:$PATH
- tar -zxvf testData/cplusplus/gui/ext_libs/GLC_LIB_install.tgz
- ls
- export GLC_ROOT=$PWD/GLC_LIB_install
- ls $GLC_ROOT/include
before_script:
- export BOOST_ROOT=/usr/local
- export REPOBOUNCER_ROOT=/usr/local
script:
- qmake -recursive
- CXXFLAGS+=-std=c++11 make -j2
notifications:
email:
recipients: