Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds custom package job test
  • Loading branch information
S0PEX committed Nov 28, 2020
commit 547ee61172d9aa52cdfe9759a01c924233688bac
28 changes: 22 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
image: Visual Studio 2019

before_build:
- 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
- rm ReClass.NET.sln
- nuget restore # restore nuget dependencies

environment:
matrix:
- job_name: Package

platform:
- x86
- x64

configuration: Release

before_build:
- 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
- rm ReClass.NET.sln
- nuget restore # restore nuget dependencies

# Build the solution with the name cleaned.sln
build:
project: cleaned.sln
verbosity: minimal

# job-specific configurations
for:
-
matrix:
only:
- job_name: Package
build_script:
- echo Job 1

# Package the builded files into a zip and push as artifacts
after_build:
- cd %APPVEYOR_BUILD_FOLDER% # CD into the cloned project folder
- cd Bin # CD into the bin
- cd Bin # CD into Bin
- cd Release # CD into Release
- set BUILD_ARCHIVE=%APPVEYOR_PROJECT_NAME%-%CONFIGURATION%-%PLATFORM%.zip # Set our output archive as projectname-(Debug|Release)-(x86|x64)
- cmd: 7z a -r %BUILD_ARCHIVE% *.dll *.exe # Add all exe and dll files to our archive
- appveyor PushArtifact %BUILD_ARCHIVE% # Upload the archive as an artifact