-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Working tests with OTP 25 * Remove riak core mention, update makefile example * Remove lager config * Remove lager, fix riak_core commit * Update rebar3 executable * Set up rebar3 formatting * Fix wrong path * Fix wrong path * Add missing command * Add OTP to Job * Apply formatting * Remove rebar.lock * Change rebar.config * Pin rebar3_format * Update rebar3 format * Roll-back rebar3 format * Add test-otp-version job * Fix minor error * Add older OTP versions * Use supplied rebar3 instead of local rebar3 * Remove OTP 22 and below * Add tests for old OTP versions * Put versions into quotes * Fix versions * Remove version 19 * Only test OTP 22 with old versions * Add OTP 21 to tests * Add older rebar * Remove old otp versions * Remove travis CI * Return to make test * Break formatter check step * Fix formatting * Group OTP 25 specific code in tests * Format test file Co-authored-by: Federico Carrone <[email protected]>
- Loading branch information
1 parent
4b77c66
commit 45245d9
Showing
15 changed files
with
388 additions
and
387 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,25 @@ | ||
name: tutorial-tests | ||
on: [push] | ||
jobs: | ||
check-formatting: | ||
runs-on: ubuntu-latest | ||
name: Rebar3 formatting check | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: '25' | ||
- run: ./rebar3 compile | ||
- run: ./rebar3 format --verify | ||
test-otp-versions: | ||
runs-on: ubuntu-latest | ||
name: OTP Versions Testing | ||
strategy: | ||
matrix: | ||
version: ['23', '24', '25'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{matrix.version}} | ||
- run: make test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,6 @@ | ||
[ | ||
{riak_core, | ||
[ | ||
{ring_state_dir, "./data/ring"}, | ||
[{riak_core, | ||
[{ring_state_dir, "./data/ring"}, | ||
{web_port, {{web_port}}}, | ||
{handoff_port, {{handoff_port}}}, | ||
{schema_dirs, ["lib/rc_example-0.1.0/priv"]} | ||
]}, | ||
{sasl, [{errlog_type, error}]}, | ||
{lager, [ | ||
{handlers, [ | ||
{lager_console_backend, [{level, info}]}, | ||
{lager_file_backend, [{file, "log/error.log"}, {level, error}]}, | ||
{lager_file_backend, [{file, "log/console.log"}, {level, info}]}]} | ||
]}]. | ||
]}]. |
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,19 +1,29 @@ | ||
{erl_opts, [debug_info]}. | ||
{deps, [{riak_core, "3.1.0", {pkg, riak_core_ng}}, | ||
{lager, "3.5.1"}]}. | ||
|
||
{relx, [{release, {rc_example, "0.1.0"}, | ||
[rc_example]}, | ||
{dev_mode, true}, | ||
{include_erts, false}, | ||
{extended_start_script, false}, | ||
{sys_config, "conf/sys.config"}, | ||
{vm_args, "conf/vm.args"}, | ||
{overlay, [{template, "conf/sys.config", "releases/{{default_release_version}}/sys.config"}, | ||
{template, "conf/vm.args", "releases/{{default_release_version}}/vm.args"}]} | ||
]}. | ||
{deps, | ||
[{riak_core, | ||
{git, | ||
"https://github.com/basho/riak_core", | ||
{ref, "f15acd3a87150431277eb754792ec24a0dc81d75"}}}]}. | ||
|
||
{profiles, [{dev1, [{relx, [{overlay_vars, "conf/vars_dev1.config"}]}]}, | ||
{dev2, [{relx, [{overlay_vars, "conf/vars_dev2.config"}]}]}, | ||
{dev3, [{relx, [{overlay_vars, "conf/vars_dev3.config"}]}]}, | ||
{dev4, [{relx, [{overlay_vars, "conf/vars_dev4.config"}]}]}]}. | ||
{project_plugins, [{rebar3_format, "~> 1.1.0"}]}. | ||
|
||
{shell, | ||
% {config, "config/sys.config"}, | ||
[{apps, [rc_example]}]}. | ||
|
||
{relx, | ||
[{release, {rc_example, "0.1.0"}, [rc_example]}, | ||
{dev_mode, true}, | ||
{include_erts, false}, | ||
{sys_config, "conf/sys.config"}, | ||
{vm_args, "conf/vm.args"}, | ||
{extended_start_script, false}, | ||
{overlay, | ||
[{template, "conf/sys.config", "releases/{{release_version}}/sys.config"}, | ||
{template, "conf/vm.args", "releases/{{release_version}}/vm.args"}]}]}. | ||
|
||
{profiles, | ||
[{dev1, [{relx, [{overlay_vars, "conf/vars_dev1.config"}]}]}, | ||
{dev2, [{relx, [{overlay_vars, "conf/vars_dev2.config"}]}]}, | ||
{dev3, [{relx, [{overlay_vars, "conf/vars_dev3.config"}]}]}]}. |
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,19 +1,11 @@ | ||
{application, rc_example, | ||
{application, | ||
rc_example, | ||
[{description, "An OTP application"}, | ||
{vsn, "0.1.0"}, | ||
{registered, []}, | ||
{mod, { rc_example_app, []}}, | ||
{applications, | ||
[kernel, | ||
stdlib, | ||
lager, | ||
cuttlefish, | ||
riak_core | ||
]}, | ||
{env,[]}, | ||
{mod, {rc_example_app, []}}, | ||
{applications, [kernel, stdlib, compiler, cuttlefish, riak_core]}, | ||
{env, []}, | ||
{modules, []}, | ||
|
||
{maintainers, []}, | ||
{licenses, ["Apache 2.0"]}, | ||
{links, []} | ||
]}. | ||
{links, []}]}. |
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.