Refactor CI (#39)

This commit is contained in:
Mark Tiedemann 2019-02-04 16:38:45 +01:00 committed by Ryan Dahl
parent ae83275e58
commit 1cd5d225fd
2 changed files with 18 additions and 18 deletions

View file

@ -12,12 +12,9 @@ for:
- matrix:
only:
- TYPE: powershell
install:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
- ps: scoop install pwsh
test_script:
- ps: .\install_test.ps1
- ps: pwsh install_test.ps1
- pwsh install_test.ps1
- matrix:
only:

View file

@ -21,11 +21,11 @@ matrix:
packages:
- shellcheck
env:
- SHFMT_VERSION=2.6.2
- PATH=$HOME/bin/:$PATH
- SHFMT_VERSION=v2.6.2
before_script:
- curl -sSL -o "$HOME/bin/shfmt" "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
- chmod +x "$HOME/bin/shfmt"
- curl -sSL -o $HOME/bin/shfmt https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64
- chmod +x $HOME/bin/shfmt
script:
- ./install_test.sh
@ -43,24 +43,27 @@ matrix:
- language: minimal
os:
- linux
env:
- PWSH_VERSION=6.1.2
- PATH=$HOME/bin/pwsh:$PATH
before_script:
- wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
- sudo dpkg -i packages-microsoft-prod.deb
- sudo apt-get update
- sudo apt-get install -y powershell
- mkdir -p $HOME/bin/pwsh
- curl -sSL -o $HOME/bin/pwsh/pwsh.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$PWSH_VERSION/powershell-$PWSH_VERSION-linux-x64.tar.gz
- tar -xf $HOME/bin/pwsh/pwsh.tar.gz -C $HOME/bin/pwsh
- chmod +x $HOME/bin/pwsh/pwsh
script:
- pwsh install_test.ps1
- language: minimal
os:
- osx
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_cache:
- brew cleanup
env:
- PWSH_VERSION=6.1.2
- PATH=$HOME/bin/pwsh:$PATH
before_script:
- brew tap caskroom/cask
- brew cask install powershell
- mkdir -p $HOME/bin/pwsh
- curl -sSL -o $HOME/bin/pwsh/pwsh.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$PWSH_VERSION/powershell-$PWSH_VERSION-osx-x64.tar.gz
- tar -xf $HOME/bin/pwsh/pwsh.tar.gz -C $HOME/bin/pwsh
- chmod +x $HOME/bin/pwsh/pwsh
script:
- pwsh install_test.ps1