2015-05-21 05:14:20 +08:00
|
|
|
language: cpp
|
|
|
|
compiler: clang
|
|
|
|
|
|
|
|
script: make
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
# Install clang 3.6
|
|
|
|
- echo "yes" | sudo add-apt-repository 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main'
|
|
|
|
- echo "yes" | sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main'
|
2016-02-05 15:42:21 +08:00
|
|
|
- wget --no-check-certificate -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -;
|
2015-05-21 05:14:20 +08:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install -qq --allow-unauthenticated llvm-3.6 llvm-3.6-dev clang-3.6 libstdc++-4.8-dev lib32stdc++6
|
2015-05-21 06:40:17 +08:00
|
|
|
- export CXX="clang++-3.6" CC="clang-3.6"
|
2015-05-21 05:14:20 +08:00
|
|
|
# Install cmake 3.2
|
2016-02-05 15:42:21 +08:00
|
|
|
- wget --no-check-certificate https://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-i386.sh
|
2015-05-21 05:14:20 +08:00
|
|
|
- chmod a+x cmake-3.2.2-Linux-i386.sh
|
|
|
|
- sudo ./cmake-3.2.2-Linux-i386.sh --skip-license --prefix=/usr
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make
|