From 05749f49567c86c25ff675e00a73d95ce2fd79da Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 30 Dec 2017 22:17:36 +0100 Subject: added gitlab-ci yaml --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..df158f1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +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 + - 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) + - 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 + artifacts: + paths: + - bin/ + stage: build + only: + - master diff --git a/.travis.yml b/.travis.yml index 4ac4957..16a7b12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: c before_install: - sudo apt-get -qq update - - sudo apt-get install -y debhelper fakeroot + - sudo apt-get install -y git debhelper fakeroot - sudo apt-get install -y libpcap-dev libselinux1-dev - sudo apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common - sudo apt-get install -y autoconf automake dh-autoreconf -- cgit v1.2.3