Pārlūkot izejas kodu

Merge pull request #2280 from tsloughter/github-windows-macos

add macos and windows test runs to github workflow
pull/2281/head
Tristan Sloughter pirms 5 gadiem
revīziju iesūtīja GitHub
vecāks
revīzija
b5b38d7401
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
4 mainītis faili ar 28 papildinājumiem un 30 dzēšanām
  1. +0
    -8
      .cirrus.yml
  2. +27
    -1
      .github/workflows/main.yml
  3. +1
    -1
      README.md
  4. +0
    -20
      appveyor.yml

+ 0
- 8
.cirrus.yml Parādīt failu

@ -1,8 +0,0 @@
osx_test_task:
osx_instance:
image: mojave-base
install_script: brew install erlang
test_script: |
./bootstrap
./rebar3 ct

+ 27
- 1
.github/workflows/main.yml Parādīt failu

@ -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'

+ 1
- 1
README.md Parādīt failu

@ -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)

+ 0
- 20
appveyor.yml Parādīt failu

@ -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

Notiek ielāde…
Atcelt
Saglabāt