forked from itmo153277/vpnes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (59 loc) · 2.45 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
language: cpp
sudo: require
compiler: gcc
cache:
directories:
- $HOME/downloads
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- pushd /tmp
- sudo apt-get install -yqq build-essential g++-7 autoconf automake pkg-config
- export CXX="g++-7"
- >
if [ ! -d "$HOME/downloads/autoconf-archive-2017.03.21" ] ; then
cd /tmp && wget -q http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2017.03.21.tar.xz && \
tar xf autoconf-archive-2017.03.21.tar.xz -C "$HOME/downloads" && \
cd $HOME/downloads/autoconf-archive-2017.03.21 && \
./configure --prefix=/usr && make -j$(nproc) && sudo make install
else \
cd $HOME/downloads/autoconf-archive-2017.03.21 && \
sudo make install
fi
- >
if [ ! -d "$HOME/downloads/boost_1_65_0" ] ; then
cd /tmp && wget -qO boost_1_65_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.65.0/boost_1_65_0.tar.gz/download && \
tar xf boost_1_65_0.tar.gz -C "$HOME/downloads" && cd "$HOME/downloads/boost_1_65_0" && \
echo "using gcc : : /usr/bin/g++-7 ; " >> tools/build/src/user-config.jam && \
./bootstrap.sh --prefix=/usr --with-libraries=test && ./b2 -d0 variant=release link=shared && \
sudo ./b2 -d0 variant=release link=shared install
else
cd "$HOME/downloads/boost_1_65_0" && \
sudo ./b2 -d0 variant=release link=shared install
fi
- >
if [ ! -d "$HOME/downloads/SDL2-2.0.5" ] ; then
cd /tmp && wget -q https://www.libsdl.org/release/SDL2-2.0.5.tar.gz && \
tar xf SDL2-2.0.5.tar.gz -C "$HOME/downloads" && cd "$HOME/downloads/SDL2-2.0.5" && \
./configure --prefix=/usr && make -j$(nproc) && \
sudo make install
else
cd "$HOME/downloads/SDL2-2.0.5" && \
sudo make install
fi
- >
if [ ! -d "$HOME/downloads/SDL2_gfx-1.0.4" ] ; then
cd /tmp && wget -qO SDL2_gfx-1.0.4.tar.gz https://sourceforge.net/projects/sdl2gfx/files/SDL2_gfx-1.0.4.tar.gz/download && \
tar xf SDL2_gfx-1.0.4.tar.gz -C "$HOME/downloads" && cd "$HOME/downloads/SDL2_gfx-1.0.4" && \
./configure --prefix=/usr --enable-shared --disable-static && make -j$(nproc) && \
sudo make install
else
cd "$HOME/downloads/SDL2_gfx-1.0.4" && \
sudo make install
fi
- popd
script:
- sh autogen.sh
- mkdir build && cd build
- ../configure --with-boost=/usr --with-boost-libdir=/usr/lib && make V=1 -j$(nproc) all check