|
1 | 1 | --- |
| 2 | +os: |
| 3 | + - linux |
| 4 | + # OSX Only tests on the latest Puppet Gem, not the full matrix as there's no need to double up |
| 5 | + # testing effort here. We are only concerned about whether the Mac OSX edition of PowerShell Core |
| 6 | + # will work with our PowerShell manager code. |
| 7 | + - osx |
| 8 | + |
2 | 9 | dist: trusty |
3 | 10 | language: ruby |
4 | 11 | cache: bundler |
5 | 12 | before_install: |
6 | 13 | # Additional instructions |
7 | | - - curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - |
8 | | - - curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list |
9 | | - - sudo apt-get update |
10 | | - - sudo apt-get install -y powershell |
| 14 | + # Install PowerShell Core for Ubuntu 14.04 |
| 15 | + # There's an intermittent minor issue with the public key so just reset it with apt-key ... - https://github.com/git-lfs/git-lfs/issues/3474 |
| 16 | + - if [ $TRAVIS_OS_NAME == "linux" ]; then |
| 17 | + curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -; |
| 18 | + curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list; |
| 19 | + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157; |
| 20 | + sudo apt-get update; |
| 21 | + sudo apt-get install -y powershell; |
| 22 | + fi |
| 23 | + # Install PowerShell Core for Mac |
| 24 | + - if [ $TRAVIS_OS_NAME == "osx" ]; then |
| 25 | + brew cask install powershell; |
| 26 | + fi |
| 27 | + # Output the PowerShell Core version information |
| 28 | + - pwsh -NoProfile -NoLogo -NonInteractive -Command \$PSVersionTable |
11 | 29 | - if [ $BUNDLER_VERSION ]; then |
12 | 30 | gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri; |
13 | 31 | fi |
|
24 | 42 | env: |
25 | 43 | global: |
26 | 44 | - BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0" |
| 45 | + - CHECK=parallel_spec |
27 | 46 | matrix: |
28 | 47 | fast_finish: true |
29 | 48 | include: |
30 | 49 | - |
31 | 50 | env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop" |
32 | 51 | - |
33 | | - env: CHECK=parallel_spec |
34 | | - - |
35 | | - env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec |
| 52 | + env: PUPPET_GEM_VERSION="~> 5.0" |
36 | 53 | rvm: 2.4.4 |
37 | 54 | - |
38 | | - env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3 |
| 55 | + env: PUPPET_GEM_VERSION="~> 4.0" RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3 |
39 | 56 | rvm: 2.1.9 |
40 | 57 | branches: |
41 | 58 | only: |
|
0 commit comments