Skip to content

Commit 547ee61

Browse files
committed
Adds custom package job test
1 parent 68c00b1 commit 547ee61

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

appveyor.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
11
image: Visual Studio 2019
22

3-
before_build:
4-
- findstr /V "{48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Debug {48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Release" .\ReClass.NET.sln > cleaned.sln # This removes the .Unix project from the solution another option would be to create a custom target inside the project
5-
- rm ReClass.NET.sln
6-
- nuget restore # restore nuget dependencies
7-
3+
environment:
4+
matrix:
5+
- job_name: Package
6+
87
platform:
98
- x86
109
- x64
1110

1211
configuration: Release
1312

13+
before_build:
14+
- findstr /V "{48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Debug {48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Release" .\ReClass.NET.sln > cleaned.sln # This removes the .Unix project from the solution another option would be to create a custom target inside the project
15+
- rm ReClass.NET.sln
16+
- nuget restore # restore nuget dependencies
17+
18+
# Build the solution with the name cleaned.sln
1419
build:
1520
project: cleaned.sln
1621
verbosity: minimal
1722

23+
# job-specific configurations
24+
for:
25+
-
26+
matrix:
27+
only:
28+
- job_name: Package
29+
build_script:
30+
- echo Job 1
31+
32+
# Package the builded files into a zip and push as artifacts
1833
after_build:
1934
- cd %APPVEYOR_BUILD_FOLDER% # CD into the cloned project folder
20-
- cd Bin # CD into the bin
35+
- cd Bin # CD into Bin
36+
- cd Release # CD into Release
2137
- set BUILD_ARCHIVE=%APPVEYOR_PROJECT_NAME%-%CONFIGURATION%-%PLATFORM%.zip # Set our output archive as projectname-(Debug|Release)-(x86|x64)
2238
- cmd: 7z a -r %BUILD_ARCHIVE% *.dll *.exe # Add all exe and dll files to our archive
2339
- appveyor PushArtifact %BUILD_ARCHIVE% # Upload the archive as an artifact

0 commit comments

Comments
 (0)