Skip to content

Commit

Permalink
Move cake script one up
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Nov 14, 2018
1 parent de6356e commit 8861d58
Show file tree
Hide file tree
Showing 20 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ src/MahApps.Metro/Styles/Themes/*.xaml
!src/MahApps.Metro/Styles/Themes/Theme.Template.exe

# cake
src/tools/
tools/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions XamlStyler/format_all_xaml.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xstyler.exe -r -d ..\src\ -c .\Options\MahApps.Metro.XAMLStyler.json
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@
do_not_increment_build_number: false

build_script:
- ps: cd src
- ps: .\build.ps1 -Target appveyor
- ps: cd..
- ps: .\build.ps1 -target appveyor

cache:
- src\packages -> **\packages.config
# - '%USERPROFILE%\.nuget\packages -> **\project.json'

artifacts:
- path: \src\Publish\*.*
- path: \Publish\*.*

nuget:
disable_publish_on_pr: true
14 changes: 7 additions & 7 deletions src/build.cake → build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var isReleaseBranch = StringComparer.OrdinalIgnoreCase.Equals("master", branchNa
var isTagged = AppVeyor.Environment.Repository.Tag.IsTag;

// Directories and Paths
var solution = "MahApps.Metro.sln";
var solution = "./src/MahApps.Metro.sln";
var publishDir = "./Publish";

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -145,11 +145,11 @@ Task("Pack")
Configuration = configuration
// PlatformTarget = PlatformTarget.MSIL
};
var project = "./MahApps.Metro/MahApps.Metro.csproj";
var project = "./src/MahApps.Metro/MahApps.Metro.csproj";

MSBuild(project, msBuildSettings
.WithTarget("pack")
.WithProperty("PackageOutputPath", "../" + publishDir)
.WithProperty("PackageOutputPath", "../../" + publishDir)
.WithProperty("RepositoryBranch", branchName)
.WithProperty("RepositoryCommit", gitVersion.Sha)
.WithProperty("Description", "The goal of MahApps.Metro is to allow devs to quickly and easily cobble together a 'Modern' UI for their WPF apps (>= .Net 4.5), with minimal effort.")
Expand All @@ -165,16 +165,16 @@ Task("Zip")
{
EnsureDirectoryExists(Directory(publishDir));

Zip("./MahApps.Metro.Samples/MahApps.Metro.Demo/bin/" + configuration, publishDir + "/MahApps.Metro.Demo-v" + gitVersion.NuGetVersion + ".zip");
Zip("./MahApps.Metro.Samples/MahApps.Metro.Caliburn.Demo/bin/" + configuration, publishDir + "/MahApps.Metro.Caliburn.Demo-v" + gitVersion.NuGetVersion + ".zip");
Zip("./src/MahApps.Metro.Samples/MahApps.Metro.Demo/bin/" + configuration, publishDir + "/MahApps.Metro.Demo-v" + gitVersion.NuGetVersion + ".zip");
Zip("./src/MahApps.Metro.Samples/MahApps.Metro.Caliburn.Demo/bin/" + configuration, publishDir + "/MahApps.Metro.Caliburn.Demo-v" + gitVersion.NuGetVersion + ".zip");
});

Task("Tests")
.ContinueOnError()
.Does(() =>
{
XUnit2(
"./Mahapps.Metro.Tests/bin/" + configuration + "/**/*.Tests.dll",
"./src/Mahapps.Metro.Tests/bin/" + configuration + "/**/*.Tests.dll",
new XUnit2Settings { ToolTimeout = TimeSpan.FromMinutes(5) }
);
});
Expand All @@ -201,7 +201,7 @@ Task("CreateRelease")
Name = gitVersion.AssemblySemFileVer,
Prerelease = isDevelopBranch,
TargetCommitish = branchName,
WorkingDirectory = "../"
WorkingDirectory = "."
});
});

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Styles/Themes/Theme.Template.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:system="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="options">

<!-- Matadata -->
<!-- Matadata -->
<system:String x:Key="Theme.Name">{{ThemeName}}</system:String>
<system:String x:Key="Theme.DisplayName">{{ThemeDisplayName}}</system:String>
<system:String x:Key="Theme.BaseColorScheme">{{BaseColorScheme}}</system:String>
Expand Down
4 changes: 0 additions & 4 deletions tools/format_all_xaml.cmd

This file was deleted.

0 comments on commit 8861d58

Please sign in to comment.