forked from renz45/CSharp-GradeBookApplication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
91 lines (83 loc) · 3.51 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: 1.0.{build}
branches:
only:
- master
configuration: Release
platform: Any CPU
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
version_prefix: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
environment:
#APPVEYOR_RDP_PASSWORD: QWerty1!
TESTING: test
TESTINGER: tester
access_token:
secure: MNPrU99QrEVtD3Oj7qxhgYDeT/Nq+RKs/LBq6PK3R1vGx//ZjUxqDTFBxYyq3LbzGIzzr/zBpiriJeT05TcfuQ==
git_creds:
secure: k//V1YrwDDDjpqNU5VzIyq6sXKM07WDJiFGVwRZkuhVgK1VU9HNkzDGsq5CCuYK7y/gCkUhv7JiBZvbrMrgnMg==
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
before_build:
- cmd: dotnet restore GradeBook.sln
- ps: echo $env:TESTING
build:
verbosity: minimal
on_success:
- ps: '.\Success.ps1'
#on_success:
##- git config --global credential.helper store
##- ps: Set-Content -Path "$HOME\.git-credentials" -Value "https://prab:$env:[email protected]/`n" -NoNewline
#- git config --global user.email "[email protected]"
#- git config --global user.name "Prab"
##- git remote remove origin
##- git remote add origin https://prab:$env:[email protected]/SampleProject/_git/SampleProject
##- git clone https://[email protected]/totaltestltd/SampleProject/_git/SampleProject C:\projects\atata
##- git clone https://($env:access_token)@dev.azure.com/totaltestltd/SampleProject/_git/SampleProject C:\projects\atata
#- git clone https://prab:$env:[email protected]/SampleProject/_git/SampleProject C:\projects\atata
#- git remote remove origin
#- git remote add origin https://prab:$env:[email protected]/SampleProject/_git/SampleProject
#- cd C:\projects\atata
#- git branch
#- git checkout -b testd
##- git push -u origin --all
#- git push --set-upstream origin testd
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_success:
# # Switch branches to gh-pages, clean the folder, copy everything in from the Wyam output, and commit/push
# # See http://www.appveyor.com/docs/how-to/git-push for more info
# - git config --global credential.helper store
# # EDIT your Git email and name
# - git config --global user.email $env:op_build_user_email
# - git config --global user.name $env:op_build_user
# - ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
# - git checkout gh-pages
# - git rm -rf .
# - xcopy ..\output . /E
# # EDIT your domain name or remove if not using a custom domain
# - echo wyam.io > CNAME
# # EDIT the origin of your repository - have to reset it here because AppVeyor pulls from SSH, but GitHub won't accept SSH pushes
# - git remote set-url origin https://github.com/Wyamio/Wyam.Web.git
# - git add -A
# - git commit -a -m "Commit from AppVeyor"
# - git push
#notifications:
#- provider: Webhook
# #url: http://requestbin.net/r/1q07eaw1
# url:
# secure: 4laXGhhTJ2svLa2/cJRTVKIC4s8kELIOndoJDMUuD0IpVXCmPcpXJgoS8ba/I14Rz/NtqYtMysUhsl06N2I+Pnrsv4AQDDTae6GJy07UZFrt6kCRcVtQc/9dKWRG0NQbyoZMZ1yWWC2ehtgXJexdcg==
# method: POST
# body: >-
# {
# "buildVersion": "{{buildVersion}}",
# "status": "{{status}}",
# }
# on_build_success: true
# on_build_failure: false
# on_build_status_changed: false