forked from terralang/terra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (42 loc) · 1.26 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
language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
env:
matrix:
- LLVM_CONFIG=llvm-config-3.8 CLANG=clang-3.8
- LLVM_CONFIG=llvm-config-3.5 CLANG=clang-3.5
matrix:
exclude:
- os: osx
compiler: gcc
# blacklist some branches
branches:
only:
- develop
- master
before_install:
- |
if [[ "$(uname)" = "Linux" ]]; then
sudo apt-get update -qq
sudo apt-get install -qq clang-3.5 libclang-3.5-dev llvm-3.8-dev clang-3.8 libclang-3.8-dev llvm-3.8-dev
fi
- |
if [[ "$(uname)" = "Darwin" ]]; then
curl -O http://releases.llvm.org/3.8.0/clang+llvm-3.8.0-x86_64-apple-darwin.tar.xz
tar xf clang+llvm-3.8.0-x86_64-apple-darwin.tar.xz
ln -s clang+llvm-3.8.0-x86_64-apple-darwin/bin/llvm-config llvm-config-3.8
ln -s clang+llvm-3.8.0-x86_64-apple-darwin/bin/clang clang-3.8
curl -O http://releases.llvm.org/3.5.2/clang+llvm-3.5.2-x86_64-apple-darwin.tar.xz
tar xf clang+llvm-3.5.2-x86_64-apple-darwin.tar.xz
ln -s clang+llvm-3.5.2-x86_64-apple-darwin/bin/llvm-config llvm-config-3.5
ln -s clang+llvm-3.5.2-x86_64-apple-darwin/bin/clang clang-3.5
export PATH=$PWD:$PATH
fi
script:
- make LLVM_CONFIG=$(which $LLVM_CONFIG) CLANG=$(which $CLANG) test