-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathappveyor.yml
42 lines (32 loc) · 2 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
image:
- Visual Studio 2017
install:
- choco install gitversion.portable -pre -y
clone_folder: C:\ChameleonGUI
before_build:
- ps: $env:IGNORE_NORMALISATION_GIT_HEAD_MOVE=1;gitversion $env:APPVEYOR_BUILD_FOLDER /l console /output buildserver /updateAssemblyInfo /nofetch /b $env:APPVEYOR_REPO_BRANCH
- ps: cd C:\ChameleonGUI\ChameleonMiniGUI; nuget restore -PackagesDirectory ..\packages
build_script:
- ps: pwd;cd C:\ChameleonGUI;msbuild
- ps: Copy-Item C:\ChameleonGUI\Be.Windows.Forms.HexBox\bin\Debug\*.dll C:\ChameleonGUI\ChameleonMiniGUI\bin\Debug\
- ps: Copy-Item C:\ChameleonGUI\packages\Crapto1Sharp.1.2.2\lib\net45\*.dll C:\ChameleonGUI\ChameleonMiniGUI\bin\Debug\
- ps: Copy-Item C:\ChameleonGUI\packages\DynamicExpresso.Core.2.0.0\lib\net461\*.dll C:\ChameleonGUI\ChameleonMiniGUI\bin\Debug\
- ps: 7z a release.zip C:\ChameleonGUI\ChameleonMiniGUI\bin\Debug\
test_script:
- ps: if(!(Test-Path C:\ChameleonGUI\Be.Windows.Forms.HexBox\bin\Debug\Be.Windows.Forms.HexBox.dll)){throw "Exe file do not exists."}
- ps: if(!(Test-Path C:\ChameleonGUI\ChameleonMiniGUI\bin\Debug\ChameleonMiniGUI.exe)){throw "Exe file do not exists."}
- ps: cd C:\ChameleonGUI\ChameleonTest; nuget restore -PackagesDirectory packages
- ps: cd C:\ChameleonGUI\ChameleonTest;msbuild
- ps: if(!(Test-Path C:\ChameleonGUI\ChameleonTest\ChameleonTest\bin\Debug\ChameleonTest.dll)){throw "Cant build tests."}
- ps: vstest.console.exe ChameleonTest\bin\Debug\ChameleonTest.dll
pull_requests:
do_not_increment_build_number: true
deploy_script:
- ps: cd C:\ChameleonGUI
- ps: Push-AppveyorArtifact release.zip -DeploymentName "$env:GitVersion_MajorMinorPatch";Write-Host "Artefact deploy [ OK ]" -ForegroundColor Green
on_success:
- ps: Write-Host "Build success..." -ForegroundColor Green
on_failure:
- ps: Write-Host "Build error." -ForegroundColor Red
on_finish:
- ps: $blockRdp = $false; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))