diff --git a/.sync.yml b/.sync.yml index 48218bb4..e87c6c9f 100644 --- a/.sync.yml +++ b/.sync.yml @@ -9,25 +9,28 @@ enabled: false simplecov: true before_install_pre: - - bash <(curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) -skip-sudo-check - - 'pwsh -NoProfile -NoLogo -NonInteractive -Command \$PSVersionTable # Output the PowerShell Core version information' - - if [ $BUNDLER_VERSION ]; then - gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri; - fi + - bash <(curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) -skip-sudo-check + - 'pwsh -NoProfile -NoLogo -NonInteractive -Command \$PSVersionTable # Output the PowerShell Core version information' + - if [ $BUNDLER_VERSION ]; then gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri; fi includes: - - os: osx - comment: test Mac OSX edition of PowerShell Core on a single job - env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec - rvm: 2.5.3 - stage: acceptance + - os: osx + comment: test Mac OSX edition of PowerShell Core on a single job + env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec + rvm: 2.5.3 + stage: acceptance + notifications: + slack: + secure: Yqv+S1Bwz19bor4xu3v7i5rLPzQuwTSZhO5wjsrX+jhKDN5/+e7e53x/v3Onjdrn9rjwFAxwzciAte0MO96xLFjyzWyUSziGur8/v3TcbRnnVQMOnIEj0HfmyLbx1cpxGK9V8MPsWQVAoHCklTtZIsRjMw0PcD8+aVKVF3NcBK4= appveyor.yml: simplecov: true install_post: - - 'ps: "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/raw/master/tools/install-powershell.ps1 -UseBasicParsing -OutFile install-pwsh.ps1"' - - 'ps: "& ./install-pwsh.ps1"' - - set PATH=%LOCALAPPDATA%\Microsoft\powershell;%PATH% - - pwsh -NoProfile -NoLogo -NonInteractive -Command $PSVersionTable - - powershell -NoProfile -NoLogo -NonInteractive -Command $PSVersionTable + - >- + ps: "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/raw/master/tools/install-powershell.ps1 -UseBasicParsing + -OutFile install-pwsh.ps1" + - 'ps: "& ./install-pwsh.ps1"' + - set PATH=%LOCALAPPDATA%\Microsoft\powershell;%PATH% + - pwsh -NoProfile -NoLogo -NonInteractive -Command $PSVersionTable + - powershell -NoProfile -NoLogo -NonInteractive -Command $PSVersionTable Gemfile: optional: ":development": @@ -37,18 +40,18 @@ Gemfile: ref: 20ee04ba1234e9e83eb2ffb5056e23d641c7a018 condition: Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2') required: - ':system_tests': - - gem: 'puppet-module-posix-system-r#{minor_version}' - platforms: ruby - - gem: 'puppet-module-win-system-r#{minor_version}' - platforms: - - mswin - - mingw - - x64_mingw - - gem: beaker-testmode_switcher - version: '~> 0.4' - - gem: master_manipulator - - gem: puppet-blacksmith - version: '~> 3.4' + ":system_tests": + - gem: puppet-module-posix-system-r#{minor_version} + platforms: ruby + - gem: puppet-module-win-system-r#{minor_version} + platforms: + - mswin + - mingw + - x64_mingw + - gem: beaker-testmode_switcher + version: "~> 0.4" + - gem: master_manipulator + - gem: puppet-blacksmith + version: "~> 3.4" spec/spec_helper.rb: coverage_report: true diff --git a/.travis.yml b/.travis.yml index 071477d9..08eee6f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,7 @@ before_install: - rm -f Gemfile.lock - "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner" - "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used" - - "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set" - - '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION' + - '[ -z "$RUBYGEMS_VERSION" ] || gem update --system $RUBYGEMS_VERSION' - gem --version - bundle -v script: @@ -49,3 +48,5 @@ branches: - /^v\d/ notifications: email: false + slack: + secure: Yqv+S1Bwz19bor4xu3v7i5rLPzQuwTSZhO5wjsrX+jhKDN5/+e7e53x/v3Onjdrn9rjwFAxwzciAte0MO96xLFjyzWyUSziGur8/v3TcbRnnVQMOnIEj0HfmyLbx1cpxGK9V8MPsWQVAoHCklTtZIsRjMw0PcD8+aVKVF3NcBK4= diff --git a/metadata.json b/metadata.json index 38568494..ca6ed507 100644 --- a/metadata.json +++ b/metadata.json @@ -79,5 +79,5 @@ ], "pdk-version": "1.15.0", "template-url": "https://github.com/puppetlabs/pdk-templates#master", - "template-ref": "heads/master-0-g5676b3f" + "template-ref": "heads/master-0-gcaed9d7" }