forked from leapmotion/autowiring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (52 loc) · 1.58 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
language: cpp
sudo: false
matrix:
include:
- os: linux
env:
- _CC: gcc-4.8
- _CXX: g++-4.8
- CMAKE_URL=http://cmake.org/files/v3.4/cmake-3.4.0-Linux-i386.tar.gz
- CMAKE_DIRNAME=cmake-3.4.0-Linux-i386
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- libc6-i386
- os: osx
env:
- _CC: clang
- _CXX: clang++
- CMAKE_URL=http://cmake.org/files/v3.4/cmake-3.4.0-Darwin-x86_64.tar.gz
- CMAKE_DIRNAME=cmake-3.4.0-Darwin-x86_64/CMake.app/Contents
before_install:
# Enforce whitespace guidelines
- ./scripts/whitespace_check.sh
# Enforce Leap Motion copyright notice
- ./scripts/copyright_check.sh
# Verify that our version numbers all line up
- ./scripts/version_number_updated.sh
install:
# CMake 3.4
- curl -L $CMAKE_URL | tar xz
before_script:
- export CC=$_CC
- export CXX=$_CXX
- $CXX --version
- export CPATH=/usr/include/c++/4.8:/usr/include/x86_64-linux-gnu/c++/4.8/:$CPATH
- export LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8:$LD_LIBRARY_PATH
script:
# Build Autowiring, run unit tests, and install
- $CMAKE_DIRNAME/bin/cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=~/autowiring/
- make -j 4 || make
- ctest --output-on-failure --timeout 30
- make install > logfile || cat logfile
- cpack || (cat _CPack_Packages/Linux/TGZ/InstallOutput.log; exit 3)
- cd examples
- ../$CMAKE_DIRNAME/bin/cmake . -DCMAKE_PREFIX_PATH:PATH=~
- make
after_failure:
- cat Testing/Temporary/LastTest.log 2> /dev/null