-
Notifications
You must be signed in to change notification settings - Fork 357
/
.travis.yml
54 lines (47 loc) · 1.06 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
language: cpp
# precise gcc doesn't have c++11 support
matrix:
include:
- os: linux
dist: trusty
compiler: clang
env: NAME="trusty"
- os: linux
dist: trusty
compiler: gcc
env: NAME="trusty"
- os: linux
dist: precise
compiler: clang
env: NAME="precise"
- os: osx
osx_image: xcode7.2
- os: osx
compiler: clang
- os: osx
compiler: gcc
addons:
apt:
packages:
- libcurl4-openssl-dev
before_script:
- mkdir build && cd build
- cmake ../
script:
- make && sudo make install
- cd ../examples && mkdir build && cd build
- cmake ../
- make
install:
- echo install-----------------------------------------------------------------
# Download and install libcurl
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew update;
brew install curl;
fi
# install cmake 3.2 for precise
- if [[ $NAME == "precise" ]]; then
sudo add-apt-repository ppa:george-edison55/precise-backports --yes;
sudo apt-get update;
sudo apt-get install cmake-data cmake;
fi