mirror of
https://github.com/danbulant/deno_install
synced 2026-06-17 13:31:33 +00:00
Refactor CI (#39)
This commit is contained in:
parent
ae83275e58
commit
1cd5d225fd
2 changed files with 18 additions and 18 deletions
|
|
@ -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:
|
||||
|
|
|
|||
31
.travis.yml
31
.travis.yml
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue