Skip to content

Commit d5d7305

Browse files
authored
Introduce GitHub Actions as standard CI (#90)
- Trigger on every push - Remove other CIs - Try matrix - Remove QuickCheck - Remove old OTP versions - Add new OTP versions
1 parent 76894ba commit d5d7305

File tree

5 files changed

+34
-61
lines changed

5 files changed

+34
-61
lines changed

.github/workflows/checkall.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check All
2+
run-name: triggered by ${{ github.actor }}
3+
on: [push]
4+
#push:
5+
# branches: [ $default-branch ]
6+
#pull_request:
7+
# branches: [ $default-branch ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
14+
build:
15+
strategy:
16+
matrix:
17+
version: [22, 23, 24, 25]
18+
runs-on: ubuntu-latest
19+
20+
container:
21+
image: erlang:${{ matrix.version }}
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Compile
26+
run: rebar3 compile
27+
- name: Test
28+
run: rebar3 eunit
29+
- name: Check
30+
run: rebar3 dialyzer

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
.PHONY: compile xref eunit clean check-all make deps test
1+
.PHONY: compile clean check-all test
22

33
REBAR=rebar3
44

55
all: compile
66

7-
# for busy typos
8-
m: all
9-
ma: all
10-
mak: all
11-
make: all
12-
137
compile:
148
@$(REBAR) compile
159

16-
xref:
17-
@$(REBAR) xref
18-
1910
test:
20-
@$(REBAR) as test eunit eqc
11+
@$(REBAR) eunit
2112

2213
clean:
2314
@$(REBAR) clean
2415

2516
dialyzer:
2617
@$(REBAR) dialyzer
2718

28-
check-all: test xref dialyzer
29-
30-
crosslang:
31-
@echo "do ERL_LIBS=../ before you make crosslang or fail"
32-
cd test && make crosslang
19+
check-all: test dialyzer

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# MessagePack Erlang
22

3-
[![Travis](https://secure.travis-ci.org/msgpack/msgpack-erlang.png)](https://travis-ci.org/msgpack/msgpack-erlang)
4-
[![Drone.io](https://drone.io/github.com/msgpack/msgpack-erlang/status.png)](https://drone.io/github.com/msgpack/msgpack-erlang)
53
[![hex.pm version](https://img.shields.io/hexpm/v/msgpack.svg)](https://hex.pm/packages/msgpack)
64

75
## Prerequisites for runtime

rebar.config

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%-*-Mode:erlang;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
22
% ex: set ft=erlang fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
33

4-
{require_otp_vsn, "17|18|19|20|21|22"}.
4+
{require_otp_vsn, "22|23|24|25"}.
55

66
{erl_opts, [fail_on_warning, debug_info, warn_untyped_record]}.
77
%%, {parse_transform, eqc_cover}]}.
@@ -15,21 +15,3 @@
1515
{erl_first_files, [
1616
"src/msgpack_ext.erl"
1717
]}.
18-
19-
{profiles,
20-
[{test,
21-
[{plugins, [rebar3_eqc]}]
22-
}]}.
23-
24-
%% {port_sources, ["c_src/*.c"]}.
25-
%% {port_env, [
26-
%% %% Make sure to set -fPIC when compiling leveldb
27-
%% {"CFLAGS", "$CFLAGS -Wall -O3 -fPIC"},
28-
%% {"CXXFLAGS", "$CXXFLAGS -Wall -O3 -fPIC"},
29-
%% {"DRV_CFLAGS", "$DRV_CFLAGS -O3 -Wall -I c_src/msgpack-0.5.7/src"},
30-
%% {"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/msgpack-0.5.7/src/.libs/libmsgpack.a"}
31-
%% ]}.
32-
33-
%% {pre_hooks, [{compile, "sh c_src/build.sh"}]}.
34-
35-
%% {post_hooks, [{clean, "rm -rf c_src/msgpack-0.5.7"}]}.

0 commit comments

Comments
 (0)