Skip to content

Commit

Permalink
Get rid of 'curl | sh' in travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
snowteamer committed Oct 20, 2022
1 parent b937be3 commit ea78079
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ branches:
only:
- master # https://github.com/okTurtles/group-income/issues/58
before_install:
# https://blog.travis-ci.com/2021-02-01-rundeno
- pwd
- curl -fsSL https://deno.land/x/install/install.sh | sh
- ls -l $HOME/.deno
- set -e
- deno_target="x86_64-unknown-linux-gnu"
- deno_version="v1.26.2"
- deno_uri="https://github.com/denoland/deno/releases/download/${deno_version}/deno-${deno_target}.zip"
- deno_install="${DENO_INSTALL:-$HOME/.deno}"
- deno_bin_dir="$deno_install/bin"
- deno_exe="$deno_bin_dir/deno"
- if [ ! -d "$deno_bin_dir" ]; then mkdir -p "$deno_bin_dir"; fi
- curl --fail --location --output "$deno_exe.zip" "$deno_uri"
- unzip -d "$deno_bin_dir" -o "$deno_exe.zip"
- chmod +x "$deno_exe"
- rm "$deno_exe.zip"
- echo "Deno was installed successfully to $deno_exe"
- export DENO_INSTALL="$HOME/.deno"
- export PATH="$DENO_INSTALL/bin:$PATH"
- deno run https://deno.land/std/examples/welcome.ts
- deno run https://deno.land/std/examples/welcome.ts
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
Expand Down

0 comments on commit ea78079

Please sign in to comment.