From cd1da4f8ebae63e420f66cfc0cab20464a6f5cff Mon Sep 17 00:00:00 2001 From: Syping Date: Thu, 14 Dec 2017 04:12:46 +0100 Subject: [PATCH] added travis buildscript --- .travis.yml | 19 +++++++++++++++++++ TranslationClass | 12 ------------ TunnelManager.pro | 1 - main.cpp | 2 +- travis/win32build.sh | 4 ++++ travis/win32docker.sh | 10 ++++++++++ 6 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 .travis.yml delete mode 100644 TranslationClass create mode 100755 travis/win32build.sh create mode 100755 travis/win32docker.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..78c25a0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +dist: trusty +sudo: required + +language: cpp + +services: +- docker + +script: +- travis/win32docker.sh + +deploy: + provider: releases + api_key: + secure: sBl+HBja8QyARU7rRSiHuFkLStQL1cRTTxokW1yGoqIJ88VMOqZL2kT8w4Nu1wtYxt9i8n98UOhDouz1K789tBIeFSh0H8dO1Om/HdT/KWBSK6dSwNix2I/X1OyNI1im+5B71Q7vjXyzqzTjXJToK7qXxibJC5NMozVk0PRvQcLTTudobq17FXqjSkM2Gc2zmboDsH82S2E3vdBIOs3abCiyh/G4SEMWKtWkKNr6szvs23/pOiB+RQxjbzp692SHjRhTXFVO7HBvdVbjPebWUUwyu/AXt/w2b+d5sV91dEEEspzkpajZtm1stPsVf6cvyB5coukHt8oiSpim3cGGdcXM4RNCsnZtmU8hvs0nV3YI3r+XompCFk0EU9oRkZttE7M7oBiS4CFjhw+g/n6kTrNXRZpT+YBZErVX6QsAHGgKiMKKUpa2VgeXoA8gow9zgGZJknBMg3P7UEuNl6O/udV8H7X0jesrPz2BbtEBUpuQ/tUNTg++OeLSGGfYHzvVyCDehLDcJ0GItjaMvRnz7GXWZhfsHakj3wYDBRgDtAnSdgcz3tQt+/cdBSoi4soP9YJ53lxvvwenvrIpZ1whtorgJH/Gef5kGx0KhZVoDq+GNe4axLMEemdaqjBXeTe3r9mby+jRmgaCwEeoKAnQinbSdb8N4Ahwb8r/IVR38yE= + file: assets/TunnelManager.exe + skip_cleanup: true + on: + tags: true diff --git a/TranslationClass b/TranslationClass deleted file mode 100644 index 9bbe493..0000000 --- a/TranslationClass +++ /dev/null @@ -1,12 +0,0 @@ -/***************************************************************************** -* tunnelmanager - Simple GUI for SSH Tunnels -* -* Copyright (C) 2017 Syping -* Copyright (C) 2017 Soner Sayakci -* -* This software may be modified and distributed under the terms -* of the MIT license. See the LICENSE file for details. -* -*****************************************************************************/ - -#include "TranslationClass.h" diff --git a/TunnelManager.pro b/TunnelManager.pro index 75d41ed..1824f4c 100644 --- a/TunnelManager.pro +++ b/TunnelManager.pro @@ -52,5 +52,4 @@ OTHER_FILES += \ lang\tm_de.qm \ server.png \ server.ico \ - TranslationClass \ TunnelManager.exe.manifest diff --git a/main.cpp b/main.cpp index 02c260a..4266e69 100644 --- a/main.cpp +++ b/main.cpp @@ -10,8 +10,8 @@ *****************************************************************************/ #include "mainwindow.h" +#include "TranslationClass.h" #include -#include int main(int argc, char *argv[]) { diff --git a/travis/win32build.sh b/travis/win32build.sh new file mode 100755 index 0000000..4e9a7e4 --- /dev/null +++ b/travis/win32build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +QMAKE=/home/windev/opt/qt32s/bin/qmake +mkdir -p build && mkdir -p assets && cd build && $QMAKE LIBS+=-static ../ && make -j4 && cd release && cp -Rf *.exe ../../assets/ && cd ../../assets/ && upx *.exe diff --git a/travis/win32docker.sh b/travis/win32docker.sh new file mode 100755 index 0000000..6438523 --- /dev/null +++ b/travis/win32docker.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +PROJECT_DIR=$(pwd) +QT_VERSION=5.6.3 +DOCKER_IMAGE=shyim/qt5-static-mingw32:$QT_VERSION +docker pull $DOCKER_IMAGE +docker run --rm \ + -v "${PROJECT_DIR}:/root/tunnelmanager/" \ + $DOCKER_IMAGE \ + /bin/bash -c "cd /root/tunnelmanager; ./travis/win32build.sh"