mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-18 11:17:21 +00:00
update appveyor script
This commit is contained in:
parent
3d2ed4d4ec
commit
195978f453
35
appveyor.yml
35
appveyor.yml
@ -5,8 +5,24 @@ branches:
|
|||||||
- ci
|
- ci
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- ps: if ( !(Test-Path "$env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1")) {Start-FileDownload https://raw.githubusercontent.com/TheOneRing/appVeyorHelp/master/appveyorHelp.psm1 -FileName $env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1 }
|
- ps: |
|
||||||
- ps: .\ci\appveyor.ps1
|
if ( !(Test-Path "$env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1"))
|
||||||
|
{
|
||||||
|
Start-FileDownload https://raw.githubusercontent.com/TheOneRing/appVeyorHelp/master/appveyorHelp.psm1 -FileName $env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1
|
||||||
|
}
|
||||||
|
$ErrorActionPreference="Stop"
|
||||||
|
|
||||||
|
Import-Module $env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1
|
||||||
|
|
||||||
|
Init @("ninja", "extra-cmake-modules", "png2ico") @("SnoreGrowl")
|
||||||
|
|
||||||
|
mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify
|
||||||
|
cd $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify
|
||||||
|
LogExec cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT"
|
||||||
|
CmakeImageInstall "$env:APPVEYOR_BUILD_FOLDER\work\image"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
|
|
||||||
@ -16,7 +32,6 @@ cache:
|
|||||||
- C:\ProgramData\chocolatey\bin -> ci\appveyor.ps1
|
- C:\ProgramData\chocolatey\bin -> ci\appveyor.ps1
|
||||||
- C:\ProgramData\chocolatey\lib -> ci\appveyor.ps1
|
- C:\ProgramData\chocolatey\lib -> ci\appveyor.ps1
|
||||||
- C:\tools -> ci\appveyor.ps1
|
- C:\tools -> ci\appveyor.ps1
|
||||||
- ci\appveyorHelp.psm1 -> ci\appveyor.ps1
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
SNORE_TOASTY_ID:
|
SNORE_TOASTY_ID:
|
||||||
@ -25,20 +40,22 @@ environment:
|
|||||||
SNORE_PUSHOVER_KEY:
|
SNORE_PUSHOVER_KEY:
|
||||||
secure: KTJ5xlUJfDSxpzaGLsnTDhVa2jxWkzaEcwlI2MGCn4g=
|
secure: KTJ5xlUJfDSxpzaGLsnTDhVa2jxWkzaEcwlI2MGCn4g=
|
||||||
|
|
||||||
FETCH_ARTIFATCS_TOKEN:
|
FETCH_ARTIFATCS_HOST:
|
||||||
secure: hKtPfo8p/VouF+zyAAxbXg==
|
secure: rMU3uKmS1tdIFReTTcRgchX2PJaOKSXc72lIG6OOR3RPR3Nhc8hjNnti2+WM52Ei9hsq/QMEsQaWEOFMLrvPPw==
|
||||||
|
|
||||||
|
QT_VER: 5.5
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
#mingw
|
#mingw
|
||||||
- COMPILER: MINGW
|
- COMPILER: mingw492_32
|
||||||
#msvc
|
#msvc
|
||||||
- COMPILER: MSVC
|
- COMPILER: msvc2013_64
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: work\image
|
- path: work\image
|
||||||
name: $(APPVEYOR_PROJECT_NAME)
|
name: $(APPVEYOR_PROJECT_NAME)-Qt$(QT_VER)-$(COMPILER)
|
||||||
- path: work\log
|
- path: work\log
|
||||||
name: log
|
name: log-$(APPVEYOR_PROJECT_NAME)-Qt$(QT_VER)-$(COMPILER)
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: Environment
|
- provider: Environment
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
$ErrorActionPreference="Stop"
|
|
||||||
|
|
||||||
Import-Module $env:APPVEYOR_BUILD_FOLDER\ci\appveyorHelp.psm1 -Force -Verbose
|
|
||||||
|
|
||||||
Init @("ninja", "extra-cmake-modules", "png2ico")
|
|
||||||
|
|
||||||
mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify
|
|
||||||
cd $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify
|
|
||||||
LogExec cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT"
|
|
||||||
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 };
|
|
||||||
"snore-send" = @{"Toasty-SECONDARY_BACKEND/Enabled.v1" = "true";
|
|
||||||
"Pushover-SECONDARY_BACKEND/Enabled.v1" = "true"}}
|
|
||||||
|
|
||||||
|
|
||||||
SendSnoreNotification "Build complete!" "Build of SnoreNotify succeeded"
|
|
Loading…
x
Reference in New Issue
Block a user