From 6df48cd0eb764b19dc42a677c4c768ca2552b4e6 Mon Sep 17 00:00:00 2001 From: Florian Greinacher Date: Sat, 1 Dec 2018 22:58:14 +0100 Subject: [PATCH] Enable linux configuration in AppVeyor (#415) * Enable linux configuration in AppVeyor * Add explicit NuGet restore * Deploy only from Windows job * Delete .travis.yml --- .travis.yml | 9 --------- appveyor.yml | 53 +++++++++++++++++++++++++++++----------------------- 2 files changed, 30 insertions(+), 32 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 29bffca69..000000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: csharp -mono: none -dotnet: 2.1.4 -script: - - dotnet build System.IO.Abstractions --framework netstandard1.4 - - dotnet build System.IO.Abstractions.TestingHelpers --framework netstandard1.4 - - dotnet test System.IO.Abstractions.TestingHelpers.Tests --framework netcoreapp2.0 -git: - depth: false \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index b4bf5221d..3dbf40d81 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,7 @@ -image: Visual Studio 2017 +image: +- Visual Studio 2017 +- Ubuntu + configuration: Release skip_branch_with_pr: true @@ -12,14 +15,15 @@ branches: environment: INHERITDOC_VERSION: 1.2.2.1 TEMP_DIR: c:\temp + APPVEYOR_YML_DISABLE_PS_LINUX: true install: # Temporarily install InheritDoc using the NuGet CLI -- nuget install inheritdoc -Version %INHERITDOC_VERSION% -OutputDirectory %TEMP_DIR% +- cmd: nuget install inheritdoc -Version %INHERITDOC_VERSION% -OutputDirectory %TEMP_DIR% -before_build: +before_build: - nuget restore - + build: publish_nuget: true @@ -27,22 +31,25 @@ before_package: # This step replaces the inheritdoc tags in the xml documentation with documentation from mscorlib.xml - ps: '& $env:TEMP_DIR\InheritDoc.$env:INHERITDOC_VERSION\tools\InheritDoc.exe -b $env:APPVEYOR_BUILD_FOLDER -g "c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.X\mscorlib.xml" -o' -deploy: -- provider: NuGet - api_key: - secure: z0Zh4VyDdeKlFrTEnYbhqDc0xw9M5ahv/fQJsShk3HqmUWjQ/bh4M/r6ZWZgY/ZB - skip_symbols: false - artifact: /.*\.nupkg/ - on: - branch: master - -- provider: GitHub - tag: v$(appveyor_build_version) - prerelease: true - artifact: /.*\.nupkg/ - auth_token: - secure: Rrk1zp93EpCyxec/GXKnRnJjX7vU+ClNZEBnxbM+1j6l+C56qSV7B/fUrVsJuZYV - on: - branch: master - - +for: +- + matrix: + only: + - image: Visual Studio 2017 + deploy: + - provider: NuGet + api_key: + secure: z0Zh4VyDdeKlFrTEnYbhqDc0xw9M5ahv/fQJsShk3HqmUWjQ/bh4M/r6ZWZgY/ZB + skip_symbols: false + artifact: /.*\.nupkg/ + on: + branch: master + + - provider: GitHub + tag: v$(appveyor_build_version) + prerelease: true + artifact: /.*\.nupkg/ + auth_token: + secure: Rrk1zp93EpCyxec/GXKnRnJjX7vU+ClNZEBnxbM+1j6l+C56qSV7B/fUrVsJuZYV + on: + branch: master