mirror of
https://github.com/danbulant/deno_install
synced 2026-07-05 03:00:48 +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:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
# Test the install script.
|
|
||||||
script:
|
script:
|
||||||
- ./install.py
|
- ./install.py
|
||||||
- ./install_test.py
|
- ./install_test.py
|
||||||
|
|
@ -20,18 +19,23 @@ matrix:
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- ksh
|
- shellcheck
|
||||||
- zsh
|
|
||||||
env:
|
env:
|
||||||
- PATH=$HOME/bin/:$PATH
|
- PATH=$HOME/bin/:$PATH
|
||||||
- SHFMT_VERSION=v2.6.2
|
- SHFMT_VERSION=v2.6.2
|
||||||
- SHFMT_DOWNLOAD_URL="https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
|
|
||||||
before_script:
|
before_script:
|
||||||
- $SHELL --version 2>/dev/null || dpkg -s "$SHELL" 2>/dev/null || command -v "$SHELL"
|
- curl -sSL -o "$HOME/bin/shfmt" "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
|
||||||
- curl --version
|
- chmod +x "$HOME/bin/shfmt"
|
||||||
- shellcheck --version
|
script:
|
||||||
- curl -sSL "$SHFMT_DOWNLOAD_URL" -o $HOME/bin/shfmt;
|
- ./install_test.sh
|
||||||
- chmod +x $HOME/bin/shfmt;
|
|
||||||
- shfmt --version
|
- language: bash
|
||||||
|
os:
|
||||||
|
- osx
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- shellcheck
|
||||||
|
- shfmt
|
||||||
script:
|
script:
|
||||||
- ./install_test.sh
|
- ./install_test.sh
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ esac
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
deno_asset_path=$(curl -sSf https://github.com/denoland/deno/releases |
|
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)
|
head -n 1)
|
||||||
if [ ! "$deno_asset_path" ]; then exit 1; fi
|
if [ ! "$deno_asset_path" ]; then exit 1; fi
|
||||||
deno_uri="https://github.com${deno_asset_path}"
|
deno_uri="https://github.com${deno_asset_path}"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ set -ev
|
||||||
shellcheck -s sh ./*.sh
|
shellcheck -s sh ./*.sh
|
||||||
shfmt -d .
|
shfmt -d .
|
||||||
|
|
||||||
# Test we can install a specific version
|
# Test we can install a specific version.
|
||||||
rm -rf ~/.deno
|
rm -rf ~/.deno
|
||||||
./install.sh v0.2.0
|
./install.sh v0.2.0
|
||||||
~/.deno/bin/deno -v | grep -e 0.2.0
|
~/.deno/bin/deno -v | grep -e 0.2.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue