Skip to content

Commit e80b4dc

Browse files
authored
Add Linux as CI in appveyor (#598)
1 parent b420f04 commit e80b4dc

File tree

4 files changed

+34
-24
lines changed

4 files changed

+34
-24
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ __This library provides _hassle free_ command line parsing with a constantly upd
3030
- Verbs can be array of types collected from Plugins or IoC container.
3131
- Define [verb commands](https://github.com/commandlineparser/commandline/wiki/Verbs) similar to `git commit -a`.
3232
- Support default verb.
33-
- Support Mutable and Imutable types.
33+
- Support Mutable and Immutable types.
3434
- Support HelpText localization.
3535
- Support ordering of options in HelpText.
3636
- Support [Mutually Exclusive Options](https://github.com/commandlineparser/commandline/wiki/Mutually-Exclusive-Options) and Options groups.
3737
- Support named and value options.
3838
- Support Asynchronous programming with async and await.
3939
- Unparsing support: `CommandLine.Parser.Default.FormatCommandLine<T>(T options)`.
4040
- CommandLineParser.FSharp package is F#-friendly with support for `option<'a>`, see [demo](https://github.com/commandlineparser/commandline/blob/master/demo/fsharp-demo.fsx). _NOTE: This is a separate NuGet package._
41-
- Include good wiki documentation with lot of examples ready to run online.
42-
- Support Sourcelink and symbolic package.
41+
- Include wiki documentation with lot of examples ready to run online.
42+
- Support Source Link and symbolic nuget package snupkg.
43+
- Tested in Windows, Linux Ubuntu 18.04 and Mac OS.
4344
- Most of features applies with a [CoC](http://en.wikipedia.org/wiki/Convention_over_configuration) philosophy.
4445
- C# demo: source [here](https://github.com/commandlineparser/commandline/tree/master/demo/ReadText.Demo).
4546

appveyor.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#version should be only changed with RELEASE eminent, see RELEASE.md
22

33
version: 2.8.0-ci-{build}
4-
image: Visual Studio 2019
4+
image:
5+
- Visual Studio 2019
6+
- ubuntu1804
57

68
clone_depth: 1
79
pull_requests:
@@ -26,8 +28,7 @@ skip_commits:
2628
files:
2729
- docs/*
2830
- art/*
29-
- '**/*.md'
30-
#- .travis.yml
31+
- '**/*.md'
3132
- .gitignore
3233
- .editorconfig
3334
message: /updated readme.*|update readme.*s|update docs.*|update version.*|update changelog.*/
@@ -39,12 +40,15 @@ environment:
3940

4041
build_script:
4142
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%
43+
- sh: dotnet build src/CommandLine/ -c Release --version-suffix $PACKAGE_VERSION /p:BuildTarget=$BUILD_TARGET
4244

4345
test_script:
4446
- cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET%
47+
- sh: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=$BUILD_TARGET -f netcoreapp2.0
4548

4649
after_test:
4750
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%
51+
- sh: dotnet pack src/CommandLine/ -c Release --version-suffix $PACKAGE_VERSION /p:BuildTarget=$BUILD_TARGET
4852

4953
artifacts:
5054
- path: 'src/CommandLine/bin/Release/*.nupkg'
@@ -56,20 +60,25 @@ on_failure:
5660
tree /f /a >files.lst
5761
appveyor PushArtifact .\files.lst -DeploymentName "Failed Build File Listing"
5862
59-
deploy:
60-
- provider: GitHub
61-
auth_token:
62-
secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ
63-
artifact: 'NuGetPackages'
64-
prerelease: false
65-
force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added
66-
on:
67-
APPVEYOR_REPO_TAG: true
63+
for:
64+
-
65+
matrix:
66+
only:
67+
- image: Visual Studio 2019
68+
deploy:
69+
- provider: GitHub
70+
auth_token:
71+
secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ
72+
artifact: 'NuGetPackages'
73+
prerelease: false
74+
force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added
75+
on:
76+
APPVEYOR_REPO_TAG: true
6877

69-
- provider: NuGet
70-
api_key:
71-
secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT
72-
artifact: 'NuGetPackages'
73-
on:
74-
APPVEYOR_REPO_TAG: true
78+
- provider: NuGet
79+
api_key:
80+
secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT
81+
artifact: 'NuGetPackages'
82+
on:
83+
APPVEYOR_REPO_TAG: true
7584

tests/CommandLine.Tests/Fakes/HelpTextWithLineBreaks_Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It has multiple lines.
1010

1111

1212
[Option(HelpText = @"This is a help text description where we want
13-
The left pad after a linebreak to be honoured so that
13+
the left pad after a linebreak to be honoured so that
1414
we can sub-indent within a description.")]
1515
public string StringValu2 { get; set; }
1616

tests/CommandLine.Tests/Unit/UnParserExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ public static void UnParsing_instance_with_int_nullable(bool skipDefault, int? v
207207

208208
}
209209
[Theory]
210-
[InlineData(Shapes.Circle, "--shape circle")]
211-
[InlineData(Shapes.Square, "--shape square")]
210+
[InlineData(Shapes.Circle, "--shape Circle")]
211+
[InlineData(Shapes.Square, "--shape Square")]
212212
[InlineData(null, "")]
213213
public static void UnParsing_instance_with_nullable_enum(Shapes? shape, string expected)
214214
{

0 commit comments

Comments
 (0)