Fix Windows ci script.

This commit is contained in:
Patrick von Reth 2015-08-23 13:54:45 +02:00
parent eb4594c0a8
commit be4ac91f9f
1 changed files with 40 additions and 40 deletions

View File

@ -1,41 +1,41 @@
version: '{build}' version: '{build}'
build_script: build_script:
- ps: | - ps: |
if ( !(Test-Path "$env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1")) if ( !(Test-Path "$env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1"))
{ {
mkdir $env:APPVEYOR_BUILD_FOLDER\work\ mkdir $env:APPVEYOR_BUILD_FOLDER\work\
Start-FileDownload https://raw.githubusercontent.com/TheOneRing/appVeyorHelp/master/appveyorHelp.psm1 -FileName $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1 Start-FileDownload https://raw.githubusercontent.com/TheOneRing/appVeyorHelp/master/appveyorHelp.psm1 -FileName $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1
} }
$ErrorActionPreference="Stop" $ErrorActionPreference="Stop"
Import-Module $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1 Import-Module $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1
Init @("ninja", "png2ico") @{"git://anongit.kde.org/extra-cmake-modules.git" = @{"branch" = "master"}; Init @("ninja", "png2ico") ([ordered]@{ "git://anongit.kde.org/extra-cmake-modules.git" = @{"branch" = "master"};
"https://github.com/Snorenotify/SnoreGrowl.git" = @{"branch" = "v0.4.0"}} "https://github.com/Snorenotify/SnoreGrowl.git" = @{"branch" = "v0.4.0"}})
mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\snorenotify
cd $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" LogExec cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT"
CmakeImageInstall CmakeImageInstall
test: off test: off
cache: cache:
- work\install -> appveyor.yml - work\install -> appveyor.yml
- C:\ProgramData\chocolatey\bin -> appveyor.yml - C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml - C:\ProgramData\chocolatey\lib -> appveyor.yml
- work\appveyorHelp.psm1 -> appveyor.yml - work\appveyorHelp.psm1 -> appveyor.yml
environment: environment:
QT_VER: 5.5 QT_VER: 5.5
matrix: matrix:
#mingw #mingw
- COMPILER: mingw492_32 - COMPILER: mingw492_32
#msvc #msvc
- COMPILER: msvc2013_64 - COMPILER: msvc2013_64