Skip to content

Commit 9ff72a6

Browse files
committed
Update Rebar3 config and workflow
1 parent ca88245 commit 9ff72a6

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ language: erlang
22
otp_release:
33
- '23.0'
44
install:
5-
- rebar3 get-deps
5+
- rebar3 fetch
66
script:
7-
- rebar3 eunit
8-
- rebar3 dialyzer
7+
- rebar3 build
8+
- rebar3 check
9+
- rebar3 test
910
notifications:
1011
email: false
1112
slack:

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ $ asdf install erlang 23.2
2828
Building the compiler uses [Rebar3](https://rebar3.org).
2929

3030
```sh
31-
$ rebar3 get-deps
32-
$ rebar3 eunit
33-
$ rebar3 escriptize
31+
$ rebar3 fetch
32+
$ rebar3 build
33+
$ rebar3 check
34+
$ rebar3 test
3435
```
3536

3637
This generates an Escript in `_build/default/bin` called `aero` which can be

rebar.config

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
1+
{erl_opts, [debug_info]}.
2+
3+
{cover_enabled, true}.
4+
{cover_opts, [verbose]}.
5+
6+
{xref_checks, [
7+
undefined_function_calls,
8+
undefined_functions,
9+
locals_not_used,
10+
deprecated_function_calls,
11+
deprecated_functions
12+
]}.
13+
114
{deps, [
215
{getopt, "~> 1.0.2"}
316
]}.
417

518
{escript_main_app, aero}.
19+
{escript_wrappers_windows, ["cmd", "powershell"]}.
620
{escript_emu_args, "%%! +sbtu +A0 -escript main aero_cli\n"}.
721

822
{profiles, [
923
{prod, [
1024
{erl_opts, [no_debug_info, warnings_as_errors]}
1125
]}
1226
]}.
27+
28+
{alias, [
29+
{build, [compile, escriptize]},
30+
{check, [xref, dialyzer]},
31+
{test, [eunit, cover]}
32+
]}.

src/aero.app.src

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
{modules, []},
66
{applications, [kernel, stdlib, getopt]},
77
{env, []},
8-
{licenses, ["MIT"]}
8+
{licenses, ["MIT"]},
9+
{links, [{"GitHub", "https://github.com/aerolang/aero"}]}
910
]}.

0 commit comments

Comments
 (0)