-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
24 lines (21 loc) · 1003 Bytes
/
.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
dist: trusty
language: generic
before_install:
# Install gcc 5
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get install -qq g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
# Install clang 4.0
- echo "" | sudo tee -a /etc/apt/sources.list
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main" | sudo tee -a /etc/apt/sources.list
- echo "deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main" | sudo tee -a /etc/apt/sources.list
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get -qq update
- sudo apt-get -qq install clang-4.0
# Install Buck
- sudo apt-get -qq install default-jdk ant python git
- git clone https://github.com/facebook/buck.git $HOME/buck
- cd $HOME/buck && ant && ./bin/buck build --show-output buck && cd -
script:
- mv .buckconfig.local.travis .buckconfig.local && $HOME/buck/bin/buck build :main