Skip to content

Commit

Permalink
added travis buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
Syping committed Dec 14, 2017
1 parent b7b3b23 commit cd1da4f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 14 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 0 additions & 12 deletions TranslationClass

This file was deleted.

1 change: 0 additions & 1 deletion TunnelManager.pro
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ OTHER_FILES += \
lang\tm_de.qm \
server.png \
server.ico \
TranslationClass \
TunnelManager.exe.manifest
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*****************************************************************************/

#include "mainwindow.h"
#include "TranslationClass.h"
#include <QApplication>
#include <TranslationClass>

int main(int argc, char *argv[])
{
Expand Down
4 changes: 4 additions & 0 deletions travis/win32build.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions travis/win32docker.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit cd1da4f

Please sign in to comment.