Skip to content

Commit

Permalink
fix svc templates, update ci to 5.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed Mar 16, 2019
1 parent f1ad6f9 commit a7a400b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ DEFINES += QT_DEPRECATED_WARNINGS QT_ASCII_CAST_WARNINGS

MODULE_VERSION_MAJOR = 2
MODULE_VERSION_MINOR = 0
MODULE_VERSION_PATCH = 0
MODULE_VERSION_PATCH = 1
MODULE_VERSION_IMPORT = $${MODULE_VERSION_MAJOR}.$${MODULE_VERSION_MINOR}
MODULE_VERSION = $${MODULE_VERSION_MAJOR}.$${MODULE_VERSION_MINOR}.$${MODULE_VERSION_PATCH}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ osx_image: xcode10.1
env:
global:
- QDEP_CACHE_DIR=$HOME/.qdep-cache
- QT_VER=5.12.1
- QT_VER=5.12.2
- DOCKER_IMAGE=base
- MAKE_RUN_TESTS=true
- TARGET_NAME=qtservice
Expand Down
4 changes: 2 additions & 2 deletions ProjectTemplate/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ QtService::Service::CommandResult %{SvcCn}::onStart()
@if '%{SocketPort}'
auto socket = getSocket();
@endif
return OperationCompleted;
return CommandResult::Completed;
}

QtService::Service::CommandResult %{SvcCn}::onStop(int &exitCode)
{
exitCode = EXIT_SUCCESS;
return OperationCompleted;
return CommandResult::Completed;
}
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ image:
version: build-{build}

environment:
QT_VER: 5.12.1
QT_VER: 5.12.2
MAKE_RUN_TESTS: true
TARGET_NAME: qtservice

matrix:
- PLATFORM: msvc2017_64
- PLATFORM: mingw73_64
- PLATFORM: mingw73_32
- PLATFORM: winrt_x64_msvc2017
- PLATFORM: msvc2017
- PLATFORM: winrt_x86_msvc2017
Expand All @@ -22,6 +23,7 @@ install:

build_script:
- if "%PLATFORM%" == "mingw73_64" set NO_TESTS=true
- if "%PLATFORM%" == "mingw73_32" set NO_TESTS=true
- .\qtmodules-travis\ci\win\build.bat

after_build:
Expand Down

0 comments on commit a7a400b

Please sign in to comment.