mirror of
https://github.com/danbulant/deno_install
synced 2026-07-06 03:31:01 +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:
|
- matrix:
|
||||||
only:
|
only:
|
||||||
- TYPE: powershell
|
- TYPE: powershell
|
||||||
install:
|
|
||||||
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
|
|
||||||
- ps: scoop install pwsh
|
|
||||||
test_script:
|
test_script:
|
||||||
- ps: .\install_test.ps1
|
- ps: .\install_test.ps1
|
||||||
- ps: pwsh install_test.ps1
|
- pwsh install_test.ps1
|
||||||
|
|
||||||
- matrix:
|
- matrix:
|
||||||
only:
|
only:
|
||||||
|
|
|
||||||
31
.travis.yml
31
.travis.yml
|
|
@ -21,11 +21,11 @@ matrix:
|
||||||
packages:
|
packages:
|
||||||
- shellcheck
|
- shellcheck
|
||||||
env:
|
env:
|
||||||
|
- SHFMT_VERSION=2.6.2
|
||||||
- PATH=$HOME/bin/:$PATH
|
- PATH=$HOME/bin/:$PATH
|
||||||
- SHFMT_VERSION=v2.6.2
|
|
||||||
before_script:
|
before_script:
|
||||||
- curl -sSL -o "$HOME/bin/shfmt" "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
|
- 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"
|
- chmod +x $HOME/bin/shfmt
|
||||||
script:
|
script:
|
||||||
- ./install_test.sh
|
- ./install_test.sh
|
||||||
|
|
||||||
|
|
@ -43,24 +43,27 @@ matrix:
|
||||||
- language: minimal
|
- language: minimal
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
env:
|
||||||
|
- PWSH_VERSION=6.1.2
|
||||||
|
- PATH=$HOME/bin/pwsh:$PATH
|
||||||
before_script:
|
before_script:
|
||||||
- wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
|
- mkdir -p $HOME/bin/pwsh
|
||||||
- sudo dpkg -i packages-microsoft-prod.deb
|
- 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
|
||||||
- sudo apt-get update
|
- tar -xf $HOME/bin/pwsh/pwsh.tar.gz -C $HOME/bin/pwsh
|
||||||
- sudo apt-get install -y powershell
|
- chmod +x $HOME/bin/pwsh/pwsh
|
||||||
script:
|
script:
|
||||||
- pwsh install_test.ps1
|
- pwsh install_test.ps1
|
||||||
|
|
||||||
- language: minimal
|
- language: minimal
|
||||||
os:
|
os:
|
||||||
- osx
|
- osx
|
||||||
cache:
|
env:
|
||||||
directories:
|
- PWSH_VERSION=6.1.2
|
||||||
- $HOME/Library/Caches/Homebrew
|
- PATH=$HOME/bin/pwsh:$PATH
|
||||||
before_cache:
|
|
||||||
- brew cleanup
|
|
||||||
before_script:
|
before_script:
|
||||||
- brew tap caskroom/cask
|
- mkdir -p $HOME/bin/pwsh
|
||||||
- brew cask install powershell
|
- 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:
|
script:
|
||||||
- pwsh install_test.ps1
|
- pwsh install_test.ps1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue