From 684879f64475bdde74ab2827a39879b17ae2fbb9 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 9 May 2020 10:10:38 -0600 Subject: [PATCH 1/2] add macos and windows test runs to github workflow --- .github/workflows/main.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ceeea8e..7aba218d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ on: - 'master' jobs: - build: + linux: name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -27,3 +27,29 @@ jobs: run: ./bootstrap - name: CT tests run: ./rebar3 ct + + macos: + name: Test on MacOS + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Install Erlang + run: brew install erlang + - name: Compile + run: ./bootstrap + - name: CT tests + run: ./rebar3 ct + + windows: + name: Test on Windows + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Install Erlang + run: choco install erlang + - name: Compile + run: cmd.exe /c 'bootstrap.bat' + - name: CT tests + run: cmd.exe /c 'rebar3.cmd ct' From cbccb78cad0c69268f134f491b1a7544fb4db2b0 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 9 May 2020 11:53:35 -0600 Subject: [PATCH 2/2] moved to github actions: remove cirrus and appveyor configs --- .cirrus.yml | 8 -------- README.md | 2 +- appveyor.yml | 20 -------------------- 3 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 .cirrus.yml delete mode 100644 appveyor.yml diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 6339a1ac..00000000 --- a/.cirrus.yml +++ /dev/null @@ -1,8 +0,0 @@ -osx_test_task: - osx_instance: - image: mojave-base - install_script: brew install erlang - test_script: | - ./bootstrap - ./rebar3 ct - diff --git a/README.md b/README.md index dfb99281..18e379ab 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rebar3 -![Build Status](https://github.com/erlang/rebar3/workflows/Common%20Test/badge.svg) [![OSX Build Status](https://api.cirrus-ci.com/github/erlang/rebar3.svg)](https://cirrus-ci.com/github/erlang/rebar3) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/yx4oitd9pvd2kab3?svg=true)](https://ci.appveyor.com/project/TristanSloughter/rebar3) +![Build Status](https://github.com/erlang/rebar3/workflows/Common%20Test/badge.svg) 1. [What is Rebar3?](#what-is-rebar3) 2. [Why Rebar3?](#why-rebar3) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index fa44ffab..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,20 +0,0 @@ -version: "{build}" -branches: - only: - - master -environment: - matrix: - - erlang_vsn: 19.2 - - erlang_vsn: 18.3 - - erlang_vsn: 17.5 -install: -- ps: choco install erlang --version $env:erlang_vsn -build_script: -- ps: cmd.exe /c 'bootstrap.bat' -test_script: -- ps: cmd.exe /c 'rebar3.cmd ct' -notifications: -- provider: GitHubPullRequest - on_build_success: true - on_build_failure: true - on_build_status_changed: false