diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-07-15 01:51:34 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-07-15 01:51:34 +0200 |
commit | a5b0af10914a4724c17e8c309a31c8e4380996d7 (patch) | |
tree | a46d62f0be7909a6066efc7843fe9dd51e472785 /.gitlab-ci.yml | |
parent | c537fe4dbe31b68e2276e515424ef9fc9c6fb70a (diff) | |
parent | fe77689ea1b17cd02564bf58b15cc1c75184992f (diff) |
Merge branch 'master' into release
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 28 |
1 files changed, 28 insertions, 0 deletions
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 |