-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (66 loc) · 2.05 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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
language: cpp
os:
- linux
dist: trusty
sudo: required
cache:
directories:
- $HOME/deps/boost
notifications:
email: false
before_install:
- sudo apt-get remove -qq flex bison cmake gcc g++
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -y -qq gcc-7 g++-7 m4 autoconf automake
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 100
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 100
install:
- mkdir -p build
- |
if [ ! -f "${HOME}/deps/boost/cached.marker" ]; then
mkdir -p $HOME/deps/boost
pushd build
wget https://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz
tar xfz boost_1_63_0.tar.gz
pushd boost_1_63_0
./bootstrap.sh
./b2 -j8 -d0 --prefix=$HOME/deps/boost variant=release threading=multi link=static install
popd
popd
touch ${HOME}/deps/boost/cached.marker
fi
- |
pushd build
wget https://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz
tar xfz bison-3.0.4.tar.gz
pushd bison-3.0.4
./configure && make && sudo make install
popd
popd
- |
pushd build
wget https://github.com/westes/flex/releases/download/v2.6.3/flex-2.6.3.tar.gz
tar xfz flex-2.6.3.tar.gz
pushd flex-2.6.3
./configure && make && sudo make install
popd
popd
- |
pushd build
wget https://cmake.org/files/v3.9/cmake-3.9.5-Linux-x86_64.sh
sudo sh cmake-3.9.5-Linux-x86_64.sh --skip-license --prefix=/usr/local
popd
script:
- cmake -DBOOST_ROOT=$HOME/deps/boost -DCMAKE_INSTALL_PREFIX=$HOME/khaotica .
- cmake --build . --target install -- -j8
after_success:
- tar -zcvf $HOME/khaotica-$(git describe --tags).tar.gz -C $HOME/khaotica/ .
deploy:
provider: releases
api_key: $DEPLOY_TOKEN
file_glob: true
file: $HOME/khaotica*.tar.gz
skip_cleanup: true
on:
tags: true