forked from studyzy/imewlconverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
76 lines (71 loc) · 3.23 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
69
70
71
72
73
74
image:
- Visual Studio 2019
- Ubuntu
version: "{branch}.{build}"
for:
-
matrix:
only:
- image: Ubuntu
clone_folder: ~/imewlconverter
build_script:
- dotnet build ./src/ImeWlConverterCmd --configuration Release
after_build:
- cd ./src/ImeWlConverterCmd/bin/Release/netcoreapp3.0
- tar czvf ./imewlconverter_Linux_Mac.tar.gz *
- mv ./imewlconverter_Linux_Mac.tar.gz ~/imewlconverter
- cd ~/imewlconverter
# - dotnet ./ImeWlConverterCmd.dll -?
test_script:
- cd ./src/ImeWlConverterCoreTest
- dotnet add ImeWlConverterCoreTest.csproj package Appveyor.TestLogger --version 2.0.0
- cd ../..
- dotnet test --test-adapter-path:. --logger:Appveyor ./src/ImeWlConverterCoreTest/ImeWlConverterCoreTest.csproj --configuration Release
artifacts:
- path: imewlconverter_Linux_Mac.tar.gz
name: DotnetCore
deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
release: imewlconverter-$(APPVEYOR_REPO_TAG_NAME)
description: 'New Release'
provider: GitHub
auth_token:
secure: XLH30sjOKisCZ2+ehPEf+7NVmaKdH8khPqwfT8BOOg6X6TWo48ptjgj21SZPHrYl # your encrypted token from GitHub
artifact: imewlconverter_Linux_Mac.tar.gz # upload all NuGet packages to release assets
draft: false
prerelease: false
force_update: true
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only
-
matrix:
only:
- image: Visual Studio 2019
clone_folder: C:\imewlconverter
before_build:
- MSBuild "C:\imewlconverter\src\IME WL Converter WinForm.sln" -t:restore
- C:\imewlconverter\nuget.exe restore "C:\imewlconverter\src\IME WL Converter WinForm.sln"
build_script:
- MSBuild "C:\imewlconverter\src\IME WL Converter WinForm.sln" /t:Rebuild /p:Configuration=Release
after_build:
- 7z a imewlconverter_Windows.zip "C:\imewlconverter\src\IME WL Converter Win\bin\Release\*.exe" "C:\imewlconverter\src\IME WL Converter Win\bin\Release\ImeWlConverterCore.dll" "C:\imewlconverter\src\IME WL Converter Win\bin\Release\Readme.txt" "C:\imewlconverter\src\IME WL Converter Win\bin\Release\*.manifest"
test_script:
- nunit3-console "C:\imewlconverter\src\ImeWlConverterCoreTest\bin\Release\net46\ImeWlConverterCoreTest.dll" -result=myresults.xml;format=AppVeyor
artifacts:
- path: imewlconverter_Windows.zip
name: WinForm
deploy:
tag: $(appveyor_repo_tag_name)
release: imewlconverter-$(appveyor_repo_tag_name)
description: 'New Release'
provider: GitHub
auth_token:
secure: XLH30sjOKisCZ2+ehPEf+7NVmaKdH8khPqwfT8BOOg6X6TWo48ptjgj21SZPHrYl # your encrypted token from GitHub
artifact: imewlconverter_Windows.zip # upload all NuGet packages to release assets
draft: false
prerelease: false
force_update: true
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only