Skip to content

Commit c185b81

Browse files
committed
Update build script and ensure sass is installed on appveyor
1 parent c425551 commit c185b81

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
version: '{build}'
22
os: Visual Studio 2017
3+
shallow_clone: true
34
init:
5+
- set PATH=C:\Ruby25\bin;%PATH%
46
- git config --global core.autocrlf input
57
- git config --global core.longpaths true
6-
shallow_clone: true
8+
install:
9+
- gem install sass
710
build_script:
811
build.cmd package
912
test: off

tools/build.fsx

+11-1
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,25 @@ Target.create "Clean" (fun _ ->
2727
)
2828

2929
Target.create "Build" (fun _ ->
30+
let setMSBuildParams (defaults:MSBuild.CliArguments) =
31+
{ defaults with
32+
Properties =
33+
[
34+
"Version_Suffix", if buildVersion.IsSome then buildVersion.Value else ""
35+
]
36+
}
37+
3038
DotNet.build (fun c ->
3139
{ c with
3240
Configuration = DotNet.BuildConfiguration.Release
33-
OutputPath = Some artifactsDir
41+
MSBuildParams = setMSBuildParams c.MSBuildParams
3442
}) solutionFile
3543
)
3644

3745
Target.create "Package" (fun _ ->
3846
DotNet.pack (fun c ->
3947
{ c with
48+
NoBuild = true
4049
Configuration = DotNet.BuildConfiguration.Release
4150
OutputPath = Some artifactsDir
4251
VersionSuffix = buildVersion
@@ -52,6 +61,7 @@ open Fake.Core.TargetOperators
5261
==> "Default"
5362

5463
"Clean"
64+
==> "Build"
5565
==> "Package"
5666

5767
// start build

0 commit comments

Comments
 (0)