forked from Azure/azure-docs-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (40 loc) · 1.5 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
clone_folder: c:\projects\sdk
environment:
op_build_user: "OpenPublishBuild"
op_build_user_email: "vscopbld@microsoft.com"
access_token:
secure: JWSy9tPo2eoTYpPQplvokf4IiVk6onNBbWwAs6nNWWyQ2JaO+MRAg/QzbJnTjpUm
access_token_vso:
secure: FlOlOHAHI9hhlrN7T1qduukWzJtIzTunHYoGHcz5lC97kTrAgqOl4sBCpzljrD2hVpJpaxp3UGQOD/8K2SQNVQ==
install:
- git checkout master
- npm install
before_build:
- ps: |
if($env:APPVEYOR_SCHEDULED_BUILD -or ($env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL -ne $env:op_build_user_email))
{
$env:is_ci_build_enabled=$true
echo "CI build is enabled"
}
if($env:is_ci_build_enabled)
{
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
Add-Content "$env:USERPROFILE\.git-credentials" "https://name:$($env:access_token_vso)@msazure.visualstudio.com`n"
git config --global user.email $env:op_build_user_email
git config --global user.name $env:op_build_user
scripts\UpdateSrcRepo.ps1
}
build_script:
- ps: if($env:is_ci_build_enabled)
{
scripts\build.ps1
}
test:
assemblies:
on_success:
- cmd: if "%is_ci_build_enabled%" == "True" (
scripts\OnSuccess.cmd
)
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))