From 7547efa9b4957f33ed95d75faea4aec254b7c33e Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 23 Jul 2015 12:46:36 +0200 Subject: [PATCH] install png2ico on ci and try to call snore-send on succes --- appveyor.yml | 6 ++++++ ci/appveyor.ps1 | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 77ad6c7..bf3d25f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,6 +17,12 @@ cache: - ci\appveyorHelp.psm1 -> ci\appveyor.ps1 environment: + SNORE_TOASTY_ID: + secure: lh3yt2ig14pCQMkJ9FRUj4dRLp+pw8qpLgoxr1t8Tpyo27JqXOhYMtGnZPI3wf/S + + SNORE_PUSHOVER_KEY: + secure: KTJ5xlUJfDSxpzaGLsnTDhVa2jxWkzaEcwlI2MGCn4g= + matrix: #mingw - COMPILER: MINGW diff --git a/ci/appveyor.ps1 b/ci/appveyor.ps1 index 00098b3..f75b865 100644 --- a/ci/appveyor.ps1 +++ b/ci/appveyor.ps1 @@ -2,9 +2,16 @@ $ErrorActionPreference="Stop" Import-Module $env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1 -Force -Verbose -Init @("ninja", "extra-cmake-modules") +Init @("ninja", "extra-cmake-modules", "png2ico") mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify cd $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DWITH_SNORE_DAEMON=ON -DWITH_FRONTENDS=ON -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT" -CmakeImageInstall "$env:APPVEYOR_BUILD_FOLDER\work\image" \ No newline at end of file +CmakeImageInstall "$env:APPVEYOR_BUILD_FOLDER\work\image" + +SetupSnoreSend "$env:APPVEYOR_BUILD_FOLDER\work\image\bin" @{ + "global" = @{ "Pushover-SECONDARY_BACKEND/UserKey.v1" = $env:SNORE_PUSHOVER_KEY; + "Toasty-SECONDARY_BACKEND/DeviceID.v1" = $env:SNORE_TOASTY_ID }} + + +SendSnoreNotification "Build complete!" "Build of SnoreNotify succeded" \ No newline at end of file