forked from mozart/mozart2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.19 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
language: cpp
compiler:
- gcc
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq libboost1.55-all-dev tk8.5-dev emacs23-nox
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
- mkdir externals
- cd externals
- svn co --quiet http://googletest.googlecode.com/svn/trunk gtest
- svn co --quiet http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_33/final llvm
- cd llvm/tools/
- svn co --quiet http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_33/final clang
- cd ../../..
- mkdir builds
- cd builds
- mkdir gtest-debug
- cd gtest-debug
- cmake -DCMAKE_BUILD_TYPE=Debug ../../externals/gtest
- make -j3
- cd ..
- mkdir llvm-release
- cd llvm-release
- cmake -DCMAKE_BUILD_TYPE=Release ../../externals/llvm
- make -j3
- cd ../..
script:
- cd builds
- mkdir mozart2-release
- cd mozart2-release
- cmake -DCMAKE_BUILD_TYPE=Release -DGTEST_SRC_DIR=../../externals/gtest -DGTEST_BUILD_DIR=../gtest-debug -DLLVM_SRC_DIR=../../externals/llvm -DLLVM_BUILD_DIR=../llvm-release ../..
- make -j3