mirror of
https://github.com/danbulant/deno_install
synced 2026-06-18 14:01:26 +00:00
Re-add CI for osx (#31)
This commit is contained in:
parent
1b9738eeb3
commit
e5a3f6d18b
3 changed files with 16 additions and 12 deletions
24
.travis.yml
24
.travis.yml
|
|
@ -9,7 +9,6 @@ matrix:
|
|||
python:
|
||||
- "2.7"
|
||||
- "3.3"
|
||||
# Test the install script.
|
||||
script:
|
||||
- ./install.py
|
||||
- ./install_test.py
|
||||
|
|
@ -20,18 +19,23 @@ matrix:
|
|||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- ksh
|
||||
- zsh
|
||||
- shellcheck
|
||||
env:
|
||||
- PATH=$HOME/bin/:$PATH
|
||||
- SHFMT_VERSION=v2.6.2
|
||||
- SHFMT_DOWNLOAD_URL="https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
|
||||
before_script:
|
||||
- $SHELL --version 2>/dev/null || dpkg -s "$SHELL" 2>/dev/null || command -v "$SHELL"
|
||||
- curl --version
|
||||
- shellcheck --version
|
||||
- curl -sSL "$SHFMT_DOWNLOAD_URL" -o $HOME/bin/shfmt;
|
||||
- chmod +x $HOME/bin/shfmt;
|
||||
- shfmt --version
|
||||
- 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"
|
||||
script:
|
||||
- ./install_test.sh
|
||||
|
||||
- language: bash
|
||||
os:
|
||||
- osx
|
||||
addons:
|
||||
homebrew:
|
||||
packages:
|
||||
- shellcheck
|
||||
- shfmt
|
||||
script:
|
||||
- ./install_test.sh
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ esac
|
|||
|
||||
if [ $# -eq 0 ]; then
|
||||
deno_asset_path=$(curl -sSf https://github.com/denoland/deno/releases |
|
||||
grep -o "/denoland/deno/releases/download/.*/deno_${os}_x64\.gz" |
|
||||
grep -o "/denoland/deno/releases/download/.*/deno_${os}_x64\\.gz" |
|
||||
head -n 1)
|
||||
if [ ! "$deno_asset_path" ]; then exit 1; fi
|
||||
deno_uri="https://github.com${deno_asset_path}"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ set -ev
|
|||
shellcheck -s sh ./*.sh
|
||||
shfmt -d .
|
||||
|
||||
# Test we can install a specific version
|
||||
# Test we can install a specific version.
|
||||
rm -rf ~/.deno
|
||||
./install.sh v0.2.0
|
||||
~/.deno/bin/deno -v | grep -e 0.2.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue