Skip to content

Commit 2dd75d7

Browse files
committed
Update for OpenRiak
1 parent a5ae566 commit 2dd75d7

File tree

8 files changed

+50
-109
lines changed

8 files changed

+50
-109
lines changed

.github/workflows/ci.yml

-81
This file was deleted.

.github/workflows/codespell.yml

-11
This file was deleted.

.github/workflows/erlang.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Erlang CI
2+
3+
on:
4+
push:
5+
branches:
6+
- openriak-3.2
7+
pull_request:
8+
branches:
9+
- openriak-3.2
10+
11+
jobs:
12+
13+
build:
14+
15+
name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }}
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
otp: [24, 26]
22+
os: [ubuntu-latest]
23+
24+
steps:
25+
- uses: lukka/get-cmake@latest
26+
- uses: actions/checkout@v4
27+
- name: Install Erlang/OTP
28+
uses: erlef/setup-beam@v1
29+
with:
30+
otp-version: ${{ matrix.otp }}
31+
- name: Compile
32+
run: ./rebar3 compile
33+
- name: Run xref and dialyzer
34+
run: ./rebar3 do xref, dialyzer
35+
- name: Run eunit
36+
run: ./rebar3 as gha do eunit

.github/workflows/shellcheck.yml

-8
This file was deleted.

README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
[![Github Actions][github badge]][github]
2-
[![CodeCov][codecov badge]][codecov]
3-
[![Erlang Versions][erlang versions badge]][erlang]
4-
[![License][license badge]][license]
5-
[![Latest Release][release badge]][release]
6-
[![Hex PM][hex pm badge]][hex]
7-
[![Last Commit][commit badge]][commit]
1+
![PropEr OpenRiak Status](https://github.com/OpenRiak/proper/actions/workflows/erlang.yml/badge.svg?branch=openriak-3.2)
82

93
Contact information and license
104
-------------------------------

rebar.config

+10
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@
5555
proper_unused_imports_remover,
5656
vararg]}]}]}.
5757

58+
{xref_checks, [
59+
undefined_function_calls,
60+
undefined_functions,
61+
locals_not_used,
62+
deprecated_function_calls,
63+
deprecated_functions
64+
]}.
65+
66+
{eunit_opts, [verbose]}.
67+
5868
{post_hooks, []}.
5969

6070
{dialyzer, [{warnings, [unmatched_returns, unknown]},

src/proper.app.src

+1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@
3333
{vsn, "1.4.0"},
3434
{registered, []},
3535
{applications, [compiler, kernel, stdlib]},
36+
{included_applications, [tools]},
3637
{env, []}]}.

test/proper_tests.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ cant_generate_test_() ->
773773
[?_test(assert_cant_generate(Type)) || Type <- impossible_types()].
774774

775775
proper_exported_types_test_() ->
776-
[?_assertEqual({[],12}, proper_exported_types_test:not_handled())].
776+
[?_assertEqual({[],0}, proper_exported_types_test:not_handled())].
777777

778778
%%------------------------------------------------------------------------------
779779
%% Verify that failing constraints are correctly reported
@@ -1054,7 +1054,7 @@ false_props_test_() ->
10541054
?_fails(?FORALL(_, float(0.0,0.0), false)),
10551055
?_fails(fails(?FORALL(_, integer(), false))),
10561056
?_failsWith([16], ?FORALL(X, ?LET(Y,integer(),Y*Y), X < 15)),
1057-
?_failsWith([0.0],
1057+
?_failsWith([+0.0],
10581058
?FORALL(_, ?LETSHRINK([A,B], [float(),atom()], {A,B}), false)),
10591059
?_failsWith([], conjunction([{some,true},{thing,false}])),
10601060
?_failsWith([{2,1},[{group,[[{sub_group,[1]}]]},{stupid,[1]}]],

0 commit comments

Comments
 (0)