forked from VcDevel/Vc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
77 lines (67 loc) · 2.06 KB
/
Copy path.travis.yml
File metadata and controls
77 lines (67 loc) · 2.06 KB
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
language: cpp
cache: ccache
env:
- GCC_VERSION=5
- GCC_VERSION=default
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
- env: GCC_VERSION=5
os: osx
compiler: clang
- env: GCC_VERSION=5
os: linux
compiler: clang
# The following gives us Ubuntu 14.04 LTS instead of 12.04 LTS
sudo: required
dist: trusty
install:
- if test "$TRAVIS_OS_NAME" = "osx" -a "$CXX" = "g++"; then
brew update &&
if test $GCC_VERSION = 5; then
brew install gcc5 && export CXX=g++-5 CC=gcc-5;
else
brew install coreutils && export CXX=g++-4.9 CC=gcc-4.9;
fi
fi
- if test "$TRAVIS_OS_NAME" = "osx" -a "$CXX" = "clang++"; then
brew update &&
brew install llvm &&
export CXX=/usr/local/opt/llvm/bin/clang++ CC=/usr/local/opt/llvm/bin/clang &&
export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib" &&
export CPPFLAGS=-I/usr/local/opt/llvm/include;
fi
- if test "$TRAVIS_OS_NAME" = "linux" -a "$GCC_VERSION" = "5"; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y &&
sudo apt-get update -q &&
sudo apt-get install g++-5 -y &&
export CXX=g++-5 CC=gcc-5;
fi
- if test "$TRAVIS_OS_NAME" = "linux" -a "$CXX" = "clang++"; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y &&
sudo apt-get update -q &&
sudo apt-get install clang-3.8 libstdc++-6-dev libc++-dev libc++abi-dev -y;
export CXX=clang++-3.8 CC=clang-3.8;
fi
before_script:
- $CXX --version
- cmake --version
- export dashboard_model=Experimental
- export build_type=Release
- export NUMBER_OF_PROCESSORS=2
script:
- ctest -V -S test.cmake
notifications:
email: false
irc:
channels:
- "chat.freenode.net##Vc"
on_success: change # [always|never|change] # default: always
on_failure: always # [always|never|change] # default: always
use_notice: true
skip_join: true