diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-01-26 13:11:53 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-01-26 13:11:53 +0100 |
commit | 64699b4beca3ca50da02ef3f434b79a9b8d0b716 (patch) | |
tree | fb20e7fa954b7968e72fbf336571969de1bf15b1 /.gitlab-ci.yml | |
parent | 9ca68e43eac3ad3a49fc2440e89fd89f4ce88881 (diff) |
travis-ci/gitlab-ci: clang-5.0 build, gitlab.com pipeline badge
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df158f1..d5c36cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,18 +8,22 @@ build: - 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 + - apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common clang-5.0 - 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 && ./autogen.sh --host=i686-w64-mingw32 --build=$(gcc -dumpmachine) + - 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 + - git clean -df . && export CC=clang-5.0 && autoreconf -fi && ./configure && make + CFLAGS='-Werror -Wno-error=for-loop-analysis' V=s artifacts: paths: - bin/ |