Skip to content

Commit 8996c2f

Browse files
author
Simona Avornicesei
committed
fix build script
1 parent 1af2d25 commit 8996c2f

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.appveyor.yml

+17-4
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,29 @@ before_build:
1818
build_script:
1919
- ps: |
2020
.\build.ps1 --target=build
21-
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
21+
if ($LastExitCode -ne 0) {
22+
Write-Host "Project build failed with exit code $LastExitCode! " -ForegroundColor Red -NoNewline
23+
exit $LastExitCode
24+
}
2225
2326
#---------------------------------#
2427
# tests configuration #
2528
#---------------------------------#
2629
test_script:
2730
- ps: |
2831
.\build.ps1 --target=run-tests
29-
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
32+
if ($LastExitCode -ne 0) {
33+
Write-Host "Project tests failed with exit code $LastExitCode! " -ForegroundColor Red -NoNewline
34+
exit $LastExitCode
35+
}
3036
3137
after_test:
3238
- ps: |
3339
.\build.ps1 --target=package
34-
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
40+
if ($LastExitCode -ne 0) {
41+
Write-Host "Project packaging failed with exit code $LastExitCode! " -ForegroundColor Red -NoNewline
42+
exit $LastExitCode
43+
}
3544
3645
3746
#---------------------------------#
@@ -49,6 +58,10 @@ on_success:
4958
{
5059
Write-Host 'Succesfuly build'
5160
}
52-
else {
61+
62+
on_failure:
63+
- ps: |
64+
if($true)
65+
{
5366
Write-Host "Build failed with exit code $LASTEXITCODE! " -ForegroundColor Red -NoNewline
5467
}

Tools/ccnet-packaging.inc.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<target name="prepackageDistribution" depends="clean, build" description="Prepackage the CruiseControl.NET distribution to the dist dictionary">
5656

57-
<copy file="license.txt" todir="${dist.dir}" verbose="${nant.verbosity}" />
57+
<copy file="LICENSE" tofile="${path::combine(dist.dir, 'license.txt')" verbose="${nant.verbosity}" />
5858

5959
<!-- Create CCTray distribution -->
6060
<mkdir dir="${path::combine(dist.dir, 'CCTray')}" unless="${directory::exists(path::combine(dist.dir, 'CCTray'))}" verbose="${nant.verbosity}" />

0 commit comments

Comments
 (0)