Skip to content

Commit

Permalink
Merge pull request ccnet#272 from savornicesei/fix/ccnet-267
Browse files Browse the repository at this point in the history
 ccnet#267 Integrate with AppVeyor
  • Loading branch information
RubenWillems authored May 1, 2019
2 parents 4317444 + 4e4be2d commit 21eb3ca
Show file tree
Hide file tree
Showing 27 changed files with 1,134 additions and 97 deletions.
67 changes: 67 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#---------------------------------#
# environment configuration #
#---------------------------------#
image: Visual Studio 2015

init:
- git config --global core.autocrlf true

#---------------------------------#
# build configuration #
#---------------------------------#
platform: Any CPU
configuration: Release

before_build:
- ps: gitversion /l console /output buildserver

build_script:
- ps: |
.\build.ps1 --target=build
if ($LastExitCode -ne 0) {
Write-Host "Project build failed with exit code $LastExitCode! " -ForegroundColor Red -NoNewline
exit $LastExitCode
}
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- ps: |
.\build.ps1 --target=run-tests
if ($LastExitCode -ne 0) {
Write-Host "Project tests failed with exit code $LastExitCode! " -ForegroundColor Red -NoNewline
exit $LastExitCode
}
after_test:
- ps: |
.\build.ps1 --target=package
if ($LastExitCode -ne 0) {
Write-Host "Project packaging failed with exit code $LastExitCode! " -ForegroundColor Red -NoNewline
exit $LastExitCode
}
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: 'Publish\**'

#---------------------------------#
# global handlers #
#---------------------------------#
on_success:
- ps: |
if($true)
{
Write-Host 'Succesfuly build'
}
on_failure:
- ps: |
if($true)
{
Write-Host "Build failed with exit code $LASTEXITCODE! " -ForegroundColor Red -NoNewline
}
Loading

0 comments on commit 21eb3ca

Please sign in to comment.