forked from fullstackproltd/AspNetCoreSpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
51 lines (43 loc) · 1.63 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
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
configuration: Release
platform: Any CPU
init:
- cmd: git config --global core.autocrlf true
environment:
website_name: aspnetcorespa
website_psw:
secure: UBm/tZDG4wmtrN6phRaqCBGkZqkpXWIWqMJJFxx6Zknn5imdJssw+9ZZPnT9iriMs364WsFtpNqDi7/sgDt5cQ==
nodejs_version: "6.9.1"
install:
- ps: Install-Product node $env:nodejs_version
- ps: $env:path = $env:appdata + "\npm;" + $env:path
- npm install
test_script:
# Output useful info for debugging.
- node --version && npm --version
- node -e 'console.log(process.env);'
- cmd: npm test
cache:
- node_modules -> package.json # local npm modules
before_build:
- npm run build:prod # Client production artefacts
- dotnet restore
build:
project: AspNetCoreSpa.xproj
publish_wap: true
verbosity: minimal
after_build:
- cmd: >-
dotnet publish .\ --output %appveyor_build_folder%\dist
dotnet publish-iis --publish-folder %appveyor_build_folder%\dist --framework %publish:FullTargetFramework%
artifacts:
- path: dist
name: web-app
## Commented out as VSTS is deploying
# deploy_script:
# - cmd: '"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:IisApp=''%appveyor_build_folder%\dist'' -dest:IisApp=''%website_name%'',ComputerName=''https://%website_name%.scm.azurewebsites.net/msdeploy.axd'',UserName=''$%website_name%'',Password=''%website_psw%'',IncludeAcls=''False'',AuthType=''Basic'' -verb:sync -enablerule:AppOffline -enableRule:DoNotDeleteRule -retryAttempts:2'