-
Notifications
You must be signed in to change notification settings - Fork 9
/
.old_travis.yml
65 lines (59 loc) · 1.64 KB
/
.old_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
dist: xenial
sudo: require
language: cpp
addons:
apt:
update: true
packages:
- build-essential
- libboost-all-dev
- libboost-program-options-dev
- bison
- flex
- python
- perl
- zlib1g-dev
- python-minimal
- ninja-build
- wget
- curl
- unionfs-fuse
- git
- doxygen
- graphviz
- python3
- python3-pip
- subversion
- libgmp-dev
- libmpfr-dev
- libncurses5-dev
- libncursesw5-dev
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Map2Check"
- mkdir build
- cd build
- wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
- tar xf clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
- mv clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04 clang
- export LLVM_DIR=`pwd`/clang/lib/cmake/llvm
- export CXX=$LLVM_DIR/../../../bin/clang++
- export CC=$LLVM_DIR/../../../bin/clang
- cmake .. -G Ninja -DENABLE_TEST=ON -DLLVM_DIR=$LLVM_DIR -DCMAKE_INSTALL_PREFIX=../release/
script: ninja && ninja install && ctest
after_script:
- cd ../release
- cp -r $LLVM_DIR_BASE/lib/clang/$LLVM_VERSION/include/* ./include
- cp -r $LLVM_DIR_BASE/lib/clang ./lib
- cp /usr/bin/ld ./bin/
- cp /usr/lib/x86_64-linux-gnu/libbfd-2.26.1-system.so ./lib
- cp /usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.a ./lib/
- cd ..
- tar czf map2check.tar.gz release
notifications:
email:
recipients:
on_success: never # default: change
on_failure: never # default: always