File: travis_build_jobs.sh

package info (click to toggle)
octomap 1.10.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,112 kB
  • sloc: cpp: 9,903; sh: 265; python: 71; xml: 64; makefile: 10
file content (39 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

# travis build script for test compilations

set -e

function build {
  cd $1
  mkdir build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/octomap/$1
  make -j4
  cd ..
}

case "$1" in
"dist")
  build .
  cd build && make test
  make install
  ;;
"components")
  build octomap
  cd build && make test
  make install
  cd ../..
  build dynamicEDT3D
  cd ..
  build octovis
  cd ..
  ;;
*)
  echo "Invalid build variant"
  exit 1
esac