-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
57 lines (50 loc) · 1.83 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
dist: bionic
language: cpp
# Handle git submodules yourself
git:
submodules: false
addons:
apt:
packages:
- build-essential
- cmake
- libgtest-dev
- libeigen3-dev
- libyaml-cpp-dev
- libceres-dev
- libopencv-dev
update: true
before_install:
- sudo apt update
- sudo apt install -y cmake build-essential libgtest-dev libeigen3-dev libyaml-cpp-dev
- sudo apt install -y libopenblas-dev libboost-thread-dev
- sudo apt install -y libceres-dev
- sudo apt install -y libopencv-dev
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
install:
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- cd "${TRAVIS_BUILD_DIR}"
- gcc --version
- mkdir lib
- cd lib
- git clone https://github.com/superjax/geometry && cd geometry
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ../../
- git clone https://github.com/superjax/gnss_utils && cd gnss_utils
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ../../
- git clone https://github.com/superjax/nanoflann_eigen && cd nanoflann_eigen
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ../../
- git clone https://github.com/superjax/lin_alg_tools && cd lin_alg_tools
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ../../
- git clone https://github.com/superjax/multirotor_sim && cd multirotor_sim
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ../../
- cd ..
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=ON
- make
- ./test_salsa