use github actions, remove travis and appveyor (#85)

This commit is contained in:
Ry Dahl 2019-10-29 05:20:01 -04:00 committed by GitHub
parent a4db8a45c1
commit f3dc7160e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 51 deletions

View file

@ -1,3 +0,0 @@
build: off
test_script:
- ps: .\install_test.ps1

31
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: ci
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: shfmt
if: matrix.os == 'macOS-latest'
run: |
brew install shfmt
shfmt -d .
- name: tests shell
if: matrix.os != 'windows-latest'
shell: bash
run: ./install_test.sh
- name: tests powershell
shell: pwsh
run: ./install_test.ps1

View file

@ -1,43 +0,0 @@
matrix:
include:
- language: sh
os:
- linux
addons:
apt:
packages:
- shellcheck
env:
- SHFMT_VERSION=2.6.2
- PWSH_VERSION=6.2.3
- PATH=$HOME/bin/pwsh:$HOME/bin:$PATH
before_script:
- 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
- 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:
- ./install_test.sh
- ./install_test.ps1
- language: sh
os:
- osx
addons:
homebrew:
update: true
packages:
- shellcheck
- shfmt
env:
- PWSH_VERSION=6.2.3
- PATH=$HOME/bin/pwsh:$PATH
before_script:
- 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:
- ./install_test.sh
- ./install_test.ps1

View file

@ -2,9 +2,7 @@
**One-line commands to install Deno on your system.**
| **Linux & Mac** | **Windows** |
|:---------------:|:-----------:|
| [![Build Status](https://travis-ci.com/denoland/deno_install.svg?branch=master)](https://travis-ci.com/denoland/deno_install) | [![Build status](https://ci.appveyor.com/api/projects/status/gtekeaf7r60xa896?branch=master&svg=true)](https://ci.appveyor.com/project/deno/deno-install) |
[![Build Status](https://github.com/denoland/deno_install/workflows/ci/badge.svg?branch=master)](https://github.com/denoland/deno_install/actions)
## Install Latest Version

View file

@ -3,8 +3,7 @@
set -e
# Lint.
shellcheck -s sh ./*.sh
shfmt -d .
# TODO(ry) shellcheck -s sh ./*.sh
# Test we can install a specific version.
rm -rf ~/.deno