Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit bdec99c

Browse files
use travis build number
also upgraded to cake 0.29.0
1 parent eac19cf commit bdec99c

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

build.cake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#addin "nuget:?package=Cake.FileHelpers&version=2.0.0"
2+
#addin "nuget:?package=Cake.Incubator&version=3.0.0"
23

34
var target = Argument("target", "Default");
45
var configuration = Argument("configuration", "Release");
56
var artifactsDir = Directory("./artifacts");
67
var srcDir = Directory("./src");
78
var solution = srcDir + File("SqlStreamStore.HAL.sln");
8-
var buildNumber = string.IsNullOrWhiteSpace(EnvironmentVariable("BUILD_NUMBER"))
9-
? "0"
10-
: EnvironmentVariable("BUILD_NUMBER");
9+
var buildNumber = EnvironmentVariable("TRAVIS_BUILD_NUMBER", 0);
1110
var mygetApiKey = EnvironmentVariable("MYGET_API_KEY");
1211

1312
Task("Clean")

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Param(
3939
[string[]]$ScriptArgs
4040
)
4141

42-
$cakeVersion = "0.26.0"
42+
$cakeVersion = "0.29.0"
4343
$buildPath = "$PSScriptRoot/build"
4444
$proj = @"
4545
<Project Sdk="Microsoft.NET.Sdk">

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
1010
TOOLS_DIR=$SCRIPT_DIR/tools
1111
TOOLS_PROJ=$TOOLS_DIR/tools.csproj
12-
CAKE_VERSION=0.26.1
12+
CAKE_VERSION=0.29.0
1313
CAKE_DLL=$TOOLS_DIR/Cake.CoreCLR.$CAKE_VERSION/cake.coreclr/$CAKE_VERSION/Cake.dll
1414
DOTNET_INSTALL_PATH=$SCRIPT_DIR/.dotnet
1515

0 commit comments

Comments
 (0)