deno_install/.travis.yml
Yoshiya Hinosawa 31f53e5af1 Update powershell version in mac and linux (#78)
And remove redundant test case of powershell script
2019-10-05 11:55:34 -04:00

43 lines
1.4 KiB
YAML

matrix:
include:
- language: sh
os:
- linux
addons:
apt:
packages:
- shellcheck
env:
- SHFMT_VERSION=2.6.2
- PWSH_VERSION=6.2.3
- PATH=$HOME/bin/pwsh:$HOME/bin:$PATH
before_script:
- 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
- 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:
- ./install_test.sh
- ./install_test.ps1
- language: sh
os:
- osx
addons:
homebrew:
update: true
packages:
- shellcheck
- shfmt
env:
- PWSH_VERSION=6.2.3
- PATH=$HOME/bin/pwsh:$PATH
before_script:
- 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:
- ./install_test.sh
- ./install_test.ps1