Skip to content

Commit

Permalink
Update for OpenRiak
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Oct 25, 2024
1 parent a5ae566 commit 2dd75d7
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 109 deletions.
81 changes: 0 additions & 81 deletions .github/workflows/ci.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/codespell.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Erlang CI

on:
push:
branches:
- openriak-3.2
pull_request:
branches:
- openriak-3.2

jobs:

build:

name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
otp: [24, 26]
os: [ubuntu-latest]

steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
- name: Install Erlang/OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
- name: Compile
run: ./rebar3 compile
- name: Run xref and dialyzer
run: ./rebar3 do xref, dialyzer
- name: Run eunit
run: ./rebar3 as gha do eunit
8 changes: 0 additions & 8 deletions .github/workflows/shellcheck.yml

This file was deleted.

8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
[![Github Actions][github badge]][github]
[![CodeCov][codecov badge]][codecov]
[![Erlang Versions][erlang versions badge]][erlang]
[![License][license badge]][license]
[![Latest Release][release badge]][release]
[![Hex PM][hex pm badge]][hex]
[![Last Commit][commit badge]][commit]
![PropEr OpenRiak Status](https://github.com/OpenRiak/proper/actions/workflows/erlang.yml/badge.svg?branch=openriak-3.2)

Contact information and license
-------------------------------
Expand Down
10 changes: 10 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
proper_unused_imports_remover,
vararg]}]}]}.

{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.

{eunit_opts, [verbose]}.

{post_hooks, []}.

{dialyzer, [{warnings, [unmatched_returns, unknown]},
Expand Down
1 change: 1 addition & 0 deletions src/proper.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
{vsn, "1.4.0"},
{registered, []},
{applications, [compiler, kernel, stdlib]},
{included_applications, [tools]},
{env, []}]}.
4 changes: 2 additions & 2 deletions test/proper_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ cant_generate_test_() ->
[?_test(assert_cant_generate(Type)) || Type <- impossible_types()].

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

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

0 comments on commit 2dd75d7

Please sign in to comment.