-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
73 lines (61 loc) · 2.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: 0.0.{build}
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- '%LocalAppData%\NuGet\Cache'
skip_commits:
files:
- README.md
- LICENSE
- .gitignore
image: Visual Studio 2017
environment:
SonarToken:
secure: JPhTIkoIcnnn4eMzibtWuJAK67oiN7QJy9H2K7zesrxbzI6AEpBLhGc9hUmAW8GY
before_build:
- ps: .\GenerateTokenizedConfig.ps1
- nuget restore
- cmd: if defined SonarToken (SonarQubeScanner\SonarQube.Scanner.MSBuild.exe begin /k:"IisRemoteUserTokenAuthentication" /v:0.20 /d:"sonar.host.url=https://sonarqube.com" /d:"sonar.login=%SonarToken%" /d:"sonar.verbose=true")
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '$(APPVEYOR_REPO_COMMIT)-rc'
platform: Any CPU
configuration: Release
test:
assemblies:
- '**\RutaHttpModuleTest.dll'
categories:
except:
- ActiveDirectoryRequired
after_test:
- vstest.console ".\RutaHttpModuleTest\bin\Release\RutaHttpModuleTest.dll" /logger:trx /TestCaseFilter:"TestCategory!=ActiveDirectoryRequired"
- cmd: mkdir "%APPVEYOR_BUILD_FOLDER%\Staging"
- cmd: mkdir "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-user"
- cmd: mkdir "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-user\bin"
- cmd: mkdir "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-scanner"
- cmd: copy "%APPVEYOR_BUILD_FOLDER%\web-user.config" "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-user\web.config"
- cmd: copy "%APPVEYOR_BUILD_FOLDER%\RutaHttpModule\bin\%CONFIGURATION%\*.dll" "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-user\bin\"
- cmd: copy "%APPVEYOR_BUILD_FOLDER%\web-scanner.config" "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-scanner\web.config"
- cmd: copy "%APPVEYOR_BUILD_FOLDER%\ConfigureServer.ps1" "%APPVEYOR_BUILD_FOLDER%\Staging\ConfigureServer.ps1"
- 7z a RutaHttpModule.zip "%APPVEYOR_BUILD_FOLDER%\Staging\*"
- cmd: copy "%APPVEYOR_BUILD_FOLDER%\web-user-tokenized.config" "%APPVEYOR_BUILD_FOLDER%\Staging\inetpub-user\web.config"
- 7z a RutaHttpModule-Tokenized.zip "%APPVEYOR_BUILD_FOLDER%\Staging\*"
- cmd: if defined SonarToken (SonarQubeScanner\SonarQube.Scanner.MSBuild.exe end /d:"sonar.login=%SonarToken%")
artifacts:
- path: RutaHttpModule.zip
name: RutaHttpModule
- path: RutaHttpModule-Tokenized.zip
name: RutaHttpModule-Tokenized
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'RUTA module for SSO IIS'
provider: GitHub
auth_token:
secure: 8T/Hl3dGYqGdE8zjaQNpklrJUCgm3QdMNnQxQvim17w+se7YUPxTeWH4qEMJyQCL
draft: true
prerelease: true
force_update: true
on:
appveyor_repo_tag: true