forked from oleg-shilo/cs-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (41 loc) · 1.49 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
version: 1.7.6.{build}
image: Visual Studio 2017
environment:
matrix:
- PlatformToolset: v141
platform:
- Any CPU
configuration:
- Release
install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="Any CPU" set archi=x86
- if "%platform%"=="Any CPU" set platform_input=Any CPU
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
- nuget restore "%APPVEYOR_BUILD_FOLDER%"\source\Tests\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\Source\packages
init:
- git config --global core.autocrlf true
build:
parallel: true # enable MSBuild parallel builds
verbosity: minimal
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"\source
- if "%PlatformToolset%"=="v141" msbuild csscript.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
# - cd "%APPVEYOR_BUILD_FOLDER%"\source\build
artifacts:
- path: CSScript_*.zip
name: releases
deploy:
provider: GitHub
auth_token:
secure: !!TODO, see https://www.appveyor.com/docs/deployment/github/#provider-settings!!
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
PlatformToolset: v141
configuration: Release