-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
83 lines (70 loc) · 2.05 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
76
77
78
79
80
81
82
83
language: cpp
env:
global:
# Ubuntu version
- LINUX_DIST=trusty
- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
# Global build options and C++ flags
- CXX_FLAGS="-Wall -pedantic -Werror -Wno-variadic-macros -Wno-long-long -Wno-shadow"
# Misc
- RUN_TESTS=true
- COVERAGE=false
matrix:
include:
- os: linux
dist: trusty
sudo: true
compiler: gcc
addons:
apt:
packages: &precise_latest_boost_packages
- gcc-6
- g++-6
sources: &precise_latest_boost_sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
before_install:
- export CMAKE_OPTIONS=${CMAKE_OPTIONS}" "${ENV_CMAKE_OPTIONS}
- export CXX_FLAGS=${CXX_FLAGS}" "${ENV_CXX_FLAGS}
install:
#Installing Boost 1.65
- BOOST_VERSION=1.65.0
- |
sudo wget -O boost_1_65_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.65.0/boost_1_65_0.tar.gz/download
sudo tar xzf boost_1_65_0.tar.gz
cd boost_1_65_0/
sudo ./bootstrap.sh --prefix=/usr/local --with-libraries=filesystem,system,test
sudo ./b2 link=shared threading=multi variant=release -d0
sudo ./b2 install -d0
cd ..
#Installing PiGPIO
- |
wget abyz.me.uk/rpi/pigpio/pigpio.tar
tar xf pigpio.tar
cd PIGPIO
make
sudo make install
cd ..
#Installing cmake 3.9.6
- CMAKE_VERSION=3.9.6
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.9/cmake-3.9.6-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
- cmake --version
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
- ${CXX} -v
script:
#Setting up the correct gcc version
- sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
- sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++
- gcc -v && g++ -v && cmake --version
- cd controller/CAPTAIN
- cmake CMakeLists.txt
- make