forked from udacity/CarND-PID-Control-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (44 loc) · 1.27 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
sudo: required
language: cpp
# As of 2017-07-18, Ubuntu Trusty 14.04 LTS is default travis environment.
# Xenial 16.04 LTS isn't supported yet as of March 2018 :(
#dist: xenial
# "JSON for Modern C++" Only support gcc 4.9+, Trusty ships with gcc-4.8
# CXX and CC env vars will point to g++/gcc and clang++/clang
#compiler:
# - clang
# - gcc
script:
- ./install-ubuntu-trusty.sh
- ./build.sh
matrix:
include:
# Use gcc 5.x just like Ubuntu Xenial (and README says 5.4+ required)
# works on Ubuntu Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
# Use clang 3.8 just like xenial
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
env:
- MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"
# Make sure macOS / OS X works as well
# Pick from https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
# TODO use ./install-mac.sh script instead for macOS/OS X build
#- os: osx
# osx_image: xcode9.2
before_install:
- eval "${MATRIX_EVAL}"