blob: ed1972c6809bc8e38b6e0bef07eabbddd993c0ff (
plain)
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
|
image: debian:stable-slim
stages:
- build
build:
script:
- apt-get -qq update
- apt-get install -y git debhelper fakeroot
- apt-get install -y libpcap-dev libselinux1-dev
- apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common clang
- apt-get install -y autoconf automake dh-autoreconf
- mkdir -p ../bin
- ./autogen.sh
- cp ./src/ptunnel-ng ../bin/
- git clean -df . && dpkg-buildpackage -b -us -uc
- git clean -df . && export CC=i686-w64-mingw32-gcc && autoreconf -fi &&
./configure --host=i686-w64-mingw32 --build=$(gcc -dumpmachine) &&
make CFLAGS='-Werror'
- cp ./src/ptunnel-ng.exe ../bin/
- mkdir -p ./bin
- cp -v ../*.deb ../bin/* ./bin/
- cp -v ./bin/ptunnel-ng ./bin/ptunnel-ng-dbgsym && strip -s ./bin/ptunnel-ng
- cp -v ./bin/ptunnel-ng.exe ./bin/ptunnel-ng-dbgsym.exe && i686-w64-mingw32-strip -s ./bin/ptunnel-ng.exe
- export CC=clang && ./configure && make clean && make CFLAGS='-Werror -Wno-error=for-loop-analysis' V=s
artifacts:
paths:
- bin/
stage: build
only:
- master
|