forked from ucdavis/Anlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (56 loc) · 1.55 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
version: 1.0.0.{build}
environment:
configuration: Release
matrix:
- node_version: "7"
branches:
except:
- design
image: Visual Studio 2017
install:
- ps: Install-Product node $env:node_version
- cmd: |
cd Anlab.Mvc
appveyor-retry yarn install
cd ..
- cmd: appveyor-retry dotnet restore
- cmd: echo %APPVEYOR_REPO_COMMIT_MESSAGE% > commit.txt
cache:
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'
- '%LOCALAPPDATA%\yarn -> **\package.json'
- anlab.mvc\node_modules -> **\package.json
before_build:
- ps: |
$path = (Get-Item .\Anlab.Mvc\AnlabMvc.csproj).FullName
$csproj = [xml](Get-Content $path)
$csproj.Project.PropertyGroup.Version = $Env:APPVEYOR_BUILD_VERSION
$csproj.Save($path)
build_script:
- cmd: msbuild .\Anlab.Mvc\AnlabMvc.csproj /t:RunWebpack /p:Configuration=%configuration%
- cmd: msbuild /t:Build /p:Configuration=%configuration%;RunOctoPack=true;PackageVersion=%APPVEYOR_BUILD_VERSION%;OctoPackReleaesNotesFile=..\commit.txt
test_script:
- cmd: |
cd Test
dotnet test
cd ..
- cmd: |
cd Anlab.Mvc
npm test
cd ..
artifacts:
- path: '**/bin/**/AnlabMvc.*.nupkg'
name: nugetweb
deploy:
- provider: NuGet
server: https://scruffy.caes.ucdavis.edu/nuget/packages
api_key:
secure: 0bPmdZ5IVKjvNHKPjW4pNSmM223U0YV/oQKJ/NdN/CE=
on:
branch: /master/
notifications:
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/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
channel: caes-development
on_build_success: true
on_build_failure: true
on_build_status_changed: false