-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
54 lines (45 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
version: 1.0.{build}
os:
- Visual Studio 2019
# - WMF 5
#clone_script:
#- ps: 'write-host "cloning... this replaces default clone method"'
install:
- git submodule update --init --recursive
- ps: scripts/init.ps1
- ps: scripts/restore.ps1 -pesterVersion 5.0.2
#assembly_info:
# patch: true
# file: '**\AssemblyInfo.*'
# assembly_version: '{version}'
# assembly_file_version: '{version}'
# assembly_informational_version: '{version}'
build_script:
- ps: scripts/build.ps1
test_script:
- ps: scripts/lib/test.appveyor.ps1
- ps: Uninstall-Module pathutils -verbose
- ps: Install-Module -Name csproj -RequiredVersion 1.0.6 -Force -Verbose
- ps: Get-module csproj -listavailable | format-list
- ps: Import-Module csproj -verbose
artifacts:
- path: artifacts
on_success:
- ps: 'write-host "event: build success!"'
on_failure:
- ps: 'write-host "event: build error!"'
on_finish:
- ps: 'write-host "event: build finish! pushing artifacts."'
#- ps: test-path "artifacts"
- 7z a artifacts.zip artifacts
- ps: Push-AppveyorArtifact "artifacts.zip"
deploy_script:
- ps: $branch = $env:APPVEYOR_REPO_BRANCH; write-host "Branch=$branch"
- ps: >-
$branch = $env:APPVEYOR_REPO_BRANCH;
$image = $env:APPVEYOR_BUILD_WORKER_IMAGE;
if ($branch -eq "master" -and $image -eq 'Visual Studio 2015') {
scripts/lib/push.ps1 . -buildno $env:APPVEYOR_BUILD_NUMBER;
} else {
write-warning "not deploying from branch $branch image $image";
}