forked from paulgray/exml
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from esl/modernising
Modernising the repo
- Loading branch information
Showing
13 changed files
with
163 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
name: OTP ${{matrix.otp}} | ||
strategy: | ||
matrix: | ||
otp: ['24.0-rc3', '23.3', '22.3', '21.3'] | ||
runs-on: 'ubuntu-20.04' | ||
env: | ||
OTPVER: ${{ matrix.otp }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ErlGang/setup-erlang@v1.0.0 | ||
with: | ||
otp-version: ${{ matrix.otp }} | ||
- run: make rebar3 | ||
- run: make deps | ||
- run: make test | ||
- run: make dialyzer | ||
if: ${{ matrix.otp == '23.3' }} | ||
- run: make codecov | ||
if: ${{ matrix.otp == '23.3' }} | ||
- run: make gcov | ||
if: ${{ matrix.otp == '23.3' }} | ||
- run: pip install --user codecov | ||
if: ${{ matrix.otp == '23.3' }} | ||
- run: /home/runner/.local/bin/codecov | ||
if: ${{ matrix.otp == '23.3' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
_build/ | ||
/.eunit/ | ||
/.rebar/ | ||
/c_src/*o | ||
/c_src/*d | ||
/c_src/*gcda | ||
/c_src/*gcno | ||
/deps/ | ||
/ebin/ | ||
/logs/ | ||
/priv/*so | ||
/test/*.beam | ||
|
||
*.beam | ||
*.lock | ||
/rebar3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,43 @@ | ||
{profiles, | ||
[ | ||
{test, | ||
[ | ||
{deps, [{proper, "1.3.0"}]}, | ||
{plugins, | ||
[ | ||
pc, | ||
coveralls, | ||
{rebar3_codecov, {git, "https://github.com/esl/rebar3_codecov.git", {ref, "6bd31cc"}}} | ||
]} | ||
]} | ||
]}. | ||
|
||
{plugins, [pc]}. | ||
{deps, []}. | ||
|
||
{profiles, [ | ||
{test, [ | ||
{deps, [ | ||
{proper, "1.3.0"} | ||
]}, | ||
{plugins, [ | ||
{rebar3_codecov, "0.2.0"} | ||
]}, | ||
{port_env, [ | ||
{"CXXFLAGS", "$CXXFLAGS -O3 -std=c++11 -g -Wall -Wextra -fPIC --coverage"}, | ||
{"LDFLAGS", "$LDFLAGS --coverage"} | ||
]}, | ||
{cover_enabled, true}, | ||
{cover_export_enabled, true} | ||
]} | ||
]}. | ||
|
||
{plugins, [pc, rebar3_hex]}. | ||
|
||
% Interrupt compilation, if the artifact is not found | ||
{artifacts, ["priv/exml_nif.so"]}. | ||
|
||
{port_specs, | ||
[ | ||
{port_specs, [ | ||
{ | ||
% Any arch | ||
".*", | ||
|
||
% Create library | ||
"priv/exml_nif.so", | ||
|
||
% From files | ||
["c_src/*.cpp"], | ||
|
||
% Using options | ||
[ {env, [{ "CXXFLAGS", "$CXXFLAGS -O3 -std=c++11" }]} ] | ||
} | ||
]}. | ||
[{env, [{"CXXFLAGS", "$CXXFLAGS -O3 -std=c++11"}]}] | ||
} | ||
]}. | ||
|
||
{provider_hooks, | ||
[ | ||
{post, | ||
[ | ||
{provider_hooks, [ | ||
{post, [ | ||
{compile, {pc, compile}}, | ||
{clean, {pc, clean}} | ||
]} | ||
]}. | ||
|
||
{cover_enabled, true}. | ||
{cover_export_enabled, true}. | ||
{coveralls_coverdata, "_build/test/cover/eunit.coverdata"}. | ||
{coveralls_service_name, "travis-ci"}. | ||
]}. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
{application, exml, | ||
[ | ||
{description, "XML parsing library"}, | ||
{vsn, git}, | ||
[{description, "Erlang fast XML parsing library"}, | ||
{vsn, "3.0.4"}, | ||
{registered, []}, | ||
{applications, [kernel, | ||
stdlib]}, | ||
{env, []} | ||
{applications, | ||
[kernel, | ||
stdlib | ||
]}, | ||
{env, []}, | ||
{modules, []}, | ||
{maintainers, ["ESL"]}, | ||
{pkg_name, "hexml"}, | ||
{licenses, ["Apache 2.0", "Boost Software License 1.0 (C++ code)", "GPL (tests)"]}, | ||
{links, [{"GitHub", "https://github.com/esl/exml/"}]}, | ||
{exclude_files, ["c_src/exml.d"]} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.