BootstrapAdmin/appveyor.yml

68 lines
2.3 KiB
YAML

version: 1.0.{build}
branches:
only:
- master
- dev
image: Visual Studio 2017
clone_depth: 1
init:
- ps: dotnet --version
environment:
Appveyor: true
COVERALLS_REPO_TOKEN:
secure: 5L1b6XqSNTOfU1iZrARo5eUOi1HOleVO3VDCW0pr6yaspgkC5jxL+gBDK0OEY8EI
services:
- mssql2014
- mysql
- mongodb
install:
- ps: >-
#copy my.ini into mysql folder
xcopy "$($env:appveyor_build_folder)\DatabaseScripts\MySQL\my.ini" "C:\Program Files\MySQL\MySQL Server 5.7" /y
build_script:
- ps: >-
./appveyor.build.ps1
test_script:
- ps: >-
./appveyor.test.ps1
artifacts:
- path: Bootstrap.Admin\bin\release\netcoreapp2.2\publish\
name: BootstrapAdmin
type: WebDeployPackage
deploy:
- provider: GitHub
tag: v$(appveyor_build_version)
release: BootstrapAdmin-v$(appveyor_build_version)
description: BootstrapAdmin auto generated by Appveyor
auth_token:
secure: bTF+J9xTuL63Q3fMN533GYvPEjHYPZsFRCVrpYpyFNcQpLe3CMLYT1D/x52J9nhC
artifact: BootstrapAdmin
draft: true
prerelease: true
force_update: true
on:
branch: master
APPVEYOR_REPO_TAG: true
APPVEYOR_REPO_PROVIDER: gitHub
notifications:
- provider: Email
to:
- argo@163.com
subject: '{{projectName}} {{branch}} Build {{status}} {{buildVersion}}'
message: >-
<div style="font-family:'Segoe UI',Arial,Sans-Serif;font-size:10pt;">
{{#passed}}
<h1 style="font-size: 150%;font-weight:normal; color:#078DC7;"><a href="{{buildUrl}}" style="color:#078DC7;">Build {{repositoryProvider}} {{projectName}} {{branch}} {{buildVersion}} completed</a></h1>{{/passed}}
{{#failed}}
<h1 style="font-size: 150%;font-weight:normal; color:#ff3228;"><a href="{{buildUrl}}" style="color:#ff3228;">Build {{repositoryProvider}} {{projectName}} {{branch}} {{buildVersion}} failed</a></h1>{{/failed}}
<p style="color: #888;">
Commit <a href="{{commitUrl}}">{{commitId}}</a> by <a href="mailto:{{commitAuthorEmail}}">{{commitAuthor}}</a> on {{commitDate}}:
<br />
<span style="font-size: 110%;color:#222;">{{commitMessage}}</span>
</p>
<p><a href="{{notificationSettingsUrl}}" style="font-size:85%;color:#999;">Configure your notification preferences</a></p>
</div>
on_build_success: true
on_build_failure: true
on_build_status_changed: false