Skip to content

Commit

Permalink
Add appveyor config file
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtualEvan committed Apr 18, 2019
1 parent 88f9d6b commit bc6967a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 1.0.{build}
configuration: Release
platform: Any CPU

environment:
APP_TYPE: dll
APP_NAME: $(APPVEYOR_PROJECT_NAME)
APP_BIN: $(APP_NAME).$(APP_TYPE)

before_build:
- ps: nuget restore
- ps: mkdir $ENV:APP_NAME/lib
- ps: Start-FileDownload 'https://github.com/cern-winagent/plugin/releases/latest/download/plugin.dll' -FileName $ENV:APP_NAME/lib/plugin.dll

build_script:
- ps: msbuild /p:VersionAssembly=$ENV:APPVEYOR_REPO_TAG_NAME /p:Configuration=Release $ENV:APP_NAME.sln

after_build:
- ps: (Get-FileHash $ENV:APP_NAME/bin/Release/$ENV:APP_BIN -Algorithm SHA1).Hash > $ENV:APP_NAME/bin/Release/$ENV:APP_BIN.sha1

artifacts:
- path: $(APP_NAME)/bin/Release/$(APP_BIN)
name: $(APP_BIN)
- path: $(APP_NAME)/bin/Release/$(APP_BIN).sha1
name: $(APP_BIN).sha1

deploy:
- provider: GitHub
auth_token:
secure: I9yNz4hsZBa4a7xxyISIQOV6xo/Ol3sWtsIXcPhACKe288D0tuyHZ3J6GwFuSBi2
repository: cern-winagent/$(APP_NAME)
artifact: $(APP_BIN), $(APP_BIN).sha1
force_update: true
on:
APPVEYOR_REPO_TAG: true

0 comments on commit bc6967a

Please sign in to comment.