forked from connamara/quickfixn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of having a mix of batch scripts calling PowerShell and PowerShell scripts calling batch scripts, let's just choose one or the other. These days, PowerShell is the preferred scripting and automation language on Windows. And with PowerShell Core, you can use most scripts on Linux, too.
- Loading branch information
1 parent
baebbc1
commit a17824c
Showing
7 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Param ( | ||
[Parameter(HelpText='Generating a data dictionary uses Ruby. This parameter allows you to use an installation of Ruby in a WSL instance.')] | ||
[switch]$UseWSL, | ||
|
||
[Parameter(HelpText='Allows you to specify the WSL distribution to use. If not provided, the default distro will be used.')] | ||
[string]$Distro | ||
) | ||
|
||
function Build-DataDictionary { | ||
Params ( | ||
[switch]$UseWSL, | ||
|
||
[string]$Distro | ||
) | ||
|
||
Process { | ||
if ($UseWSL -and $UseWSL.IsPresent) | ||
{ | ||
if ($Distro) { | ||
wsl -d "$Distro" ruby ./generator/generate.rb | ||
} else { | ||
wsl ruby ./generator/generate.rb | ||
} | ||
} else { | ||
ruby ./generator/generate.rb | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
version: 1.0.{build} | ||
|
||
install: | ||
- cmd: >- | ||
- ps: | | ||
gem install --source http://rubygems.org nokogiri -v 1.6.8.1 | ||
ruby generator\generate.rb | ||
generate.bat | ||
build_script: | ||
- cmd: build.bat | ||
- ps: dotnet build -c Release | ||
|
||
test_script: | ||
- cmd: >- | ||
unit_test.bat | ||
appveyor_test.bat | ||
- ps: | | ||
dotnet test -c Release --no-build --no-restore UnitTests -l trx | ||
.\acceptance_test.ps1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Param ( | ||
[Parameter(Position=0, ValueFromPipeline)] | ||
[ValidateSet('debug','release')] | ||
[string[]]$Configuration = 'release' | ||
) | ||
|
||
foreach ($c in $Configuration) { | ||
dotnet build -c $Configuration | ||
} |
This file was deleted.
Oops, something went wrong.