mirror of
https://github.com/valitydev/payout-manager-proto.git
synced 2024-11-06 00:45:22 +00:00
TD-222: Update Erlang bits wrt valitydev/thrift 0.14.2.3 (#28)
* Bump to valitydev/damsel@9362c086 * Mention damsel as explicit dependency
This commit is contained in:
parent
063163dc7e
commit
d92a22cda6
33
.github/workflows/erlang-pr.yml
vendored
33
.github/workflows/erlang-pr.yml
vendored
@ -7,28 +7,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and verify
|
uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1
|
||||||
runs-on: ubuntu-latest
|
with:
|
||||||
steps:
|
otp-version: 24
|
||||||
- uses: actions/checkout@v2
|
rebar-version: 3
|
||||||
|
use-thrift: true
|
||||||
- uses: valitydev/action-setup-thrift@v1
|
thrift-version: 0.14.2.3
|
||||||
|
run-eunit: false
|
||||||
- uses: erlef/setup-beam@v1
|
run-common-test: false
|
||||||
id: beam
|
|
||||||
with:
|
|
||||||
otp-version: "24"
|
|
||||||
rebar3-version: "3.18"
|
|
||||||
|
|
||||||
- name: Restore PLT cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
id: plt-cache
|
|
||||||
with:
|
|
||||||
key: |
|
|
||||||
${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-plt
|
|
||||||
path: |
|
|
||||||
_build/default/rebar3_*_plt
|
|
||||||
|
|
||||||
- run: rebar3 compile
|
|
||||||
- run: rebar3 xref
|
|
||||||
- run: rebar3 dialyzer
|
|
||||||
|
@ -2,7 +2,7 @@ include "proto/base.thrift"
|
|||||||
include "proto/domain.thrift"
|
include "proto/domain.thrift"
|
||||||
|
|
||||||
namespace java dev.vality.payout.manager
|
namespace java dev.vality.payout.manager
|
||||||
namespace erlang payouts
|
namespace erlang pmproto.payouts
|
||||||
|
|
||||||
typedef base.ID PayoutID
|
typedef base.ID PayoutID
|
||||||
|
|
||||||
|
13
rebar.config
13
rebar.config
@ -1,6 +1,5 @@
|
|||||||
%% Common project erlang options.
|
%% Common project erlang options.
|
||||||
{erl_opts, [
|
{erl_opts, [
|
||||||
|
|
||||||
% mandatory
|
% mandatory
|
||||||
debug_info,
|
debug_info,
|
||||||
warnings_as_errors,
|
warnings_as_errors,
|
||||||
@ -26,10 +25,7 @@
|
|||||||
]}.
|
]}.
|
||||||
|
|
||||||
{deps, [
|
{deps, [
|
||||||
{damsel,
|
{damsel, {git, "https://github.com/valitydev/damsel.git", {branch, "master"}}}
|
||||||
{git, "https://github.com/valitydev/damsel.git",
|
|
||||||
{branch, "master"}}
|
|
||||||
}
|
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
%% XRef checks
|
%% XRef checks
|
||||||
@ -57,18 +53,17 @@
|
|||||||
|
|
||||||
{plugins, [
|
{plugins, [
|
||||||
{rebar3_thrift_compiler,
|
{rebar3_thrift_compiler,
|
||||||
{git, "https://github.com/valitydev/rebar3_thrift_compiler.git", {branch, "master"}}}
|
{git, "https://github.com/valitydev/rebar3_thrift_compiler.git", {tag, "0.4"}}}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
{provider_hooks, [
|
{provider_hooks, [
|
||||||
{pre, [
|
{pre, [
|
||||||
{compile, {thrift, compile}},
|
{compile, {thrift, compile}},
|
||||||
{clean , {thrift, clean }}
|
{clean, {thrift, clean}}
|
||||||
]}
|
]}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
{thrift_compiler_opts, [
|
{thrift_compiler_opts, [
|
||||||
{in_dir, "proto"},
|
{in_dir, "proto"},
|
||||||
{in_files, all},
|
{gen, "erlang:app_namespaces"}
|
||||||
{gen, "erlang:scoped_typenames"}
|
|
||||||
]}.
|
]}.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[{<<"damsel">>,
|
[{<<"damsel">>,
|
||||||
{git,"https://github.com/valitydev/damsel",
|
{git,"https://github.com/valitydev/damsel.git",
|
||||||
{ref,"318a7a6588c4813bd7d5c170af58fa9b6a80e401"}},
|
{ref,"9362c08657d1681240d70f923fc04642bbfecc0a"}},
|
||||||
0}].
|
0}].
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{vsn, "0.1.0"},
|
{vsn, "0.1.0"},
|
||||||
{applications, [
|
{applications, [
|
||||||
kernel,
|
kernel,
|
||||||
stdlib
|
stdlib,
|
||||||
|
damsel
|
||||||
]}
|
]}
|
||||||
]}.
|
]}.
|
||||||
|
Loading…
Reference in New Issue
Block a user