forked from DamienDennehy/Imgur.API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
35 lines (29 loc) · 1.12 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
version: 4.0.0-build{build}
install:
- ps: >-
dnvm install 1.0.0-rc1-update1
dnvm use 1.0.0-rc1-update1
nuget sources add -Name Local-CI -Source C:\Users\appveyor\.dnx\packages
nuget sources add -Name MyGet-CI -Source http://myget.org/f/damiendennehy/
cache:
- C:\Users\appveyor\.dnx\runtimes
- C:\Users\appveyor\.dnx\packages
before_build:
- ps: >-
(Get-Content src\Imgur.API\project.json).replace('"version": "1.0.0-*",', '"version": "' + $env:APPVEYOR_BUILD_VERSION + '",') | Set-Content src\Imgur.API\project.json
(Get-Content test\Imgur.API.Tests\project.json).replace('"Imgur.API": "1.0.0-*",', '"Imgur.API": "' + $env:APPVEYOR_BUILD_VERSION + '",') | Set-Content test\Imgur.API.Tests\project.json
dnu restore
build:
verbosity: minimal
test_script:
- ps: >-
cd test\Imgur.API.Tests
dnx test
artifacts:
- path: artifacts\bin\Imgur.API\Debug\*.nupkg
deploy:
- provider: NuGet
server: https://www.myget.org/F/damiendennehy/api/v2/package
api_key:
secure: VKpWEiDhfRypjFf7MgnSlOJBdzQ1sOT87+aUCzjpj0wAFE8pOLJxcbXPR/6qqVBU
symbol_server: https://nuget.symbolsource.org/MyGet/damiendennehy