forked from robovm/ffi-clang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
21 lines (21 loc) · 925 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: ruby
rvm:
- "2.0"
- "2.1"
env:
- LLVM_VERSION=3.2
- LLVM_VERSION=3.3
- LLVM_VERSION=3.4
- LLVM_VERSION=3.5
install:
- sudo add-apt-repository --yes ppa:h-rayflood/llvm
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get -qq update
- sudo apt-get -qq install libclang-${LLVM_VERSION}-dev clang-${LLVM_VERSION}
- export LD_LIBRARY_PATH=/usr/lib/llvm-${LLVM_VERSION}/lib/
- export PATH=/usr/lib/llvm-${LLVM_VERSION}/bin:$PATH
- if [ "${LLVM_VERSION}" = "3.5" ]; then sudo ln -s /usr/bin/clang /usr/lib/llvm-${LLVM_VERSION}/bin/clang; fi
- if [ "${LLVM_VERSION}" = "3.5" ]; then sudo ln -s /usr/bin/clang++ /usr/lib/llvm-${LLVM_VERSION}/bin/clang++; fi
- bundle install