Skip to content

Commit

Permalink
upload to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
44044 committed May 29, 2019
1 parent 9d1d9ea commit 8ab0243
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
language: erlang
otp_release:
- 22.0
- 21.3
- 20.3
- 19.3
before_install:
- rebar3 local upgrade
- export PATH=~/.cache/rebar3/bin:$PATH
script:
- rebar3 ct --readable=false
- rebar3 compile
after_success:
- rebar3 as test coveralls send
deploy:
provider: script
script: ./hex.sh "${HEX_USERNAME}" "${HEX_KEY}"
skip_cleanup: true
on:
tags: true
7 changes: 7 additions & 0 deletions hex.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -e

rebar3 do hex config username "$1", hex config key "$2", hex publish <<EOF
y
EOF
2 changes: 1 addition & 1 deletion rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
CONFIG1 = lists:keystore(coveralls_service_job_id, 1, CONFIG, {coveralls_service_job_id, JobId}),
lists:keystore(plugins, 1, CONFIG1, {plugins, [coveralls]});
lists:keystore(plugins, 1, CONFIG1, {plugins, [coveralls, {rebar3_hex, "4.1.0"}]});
_ ->
CONFIG
end.
5 changes: 3 additions & 2 deletions src/fieldmask.app.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{application, fieldmask,
[
{description, "Implements Google Partial Response/json-mask in Erlang."},
{vsn, "0.0.1"},
{vsn, "git"},
{modules, []},
{registered, []},
{applications, []},
{env, []}
{env, []},
{licenses, ["Apache"]}
]
}.

0 comments on commit 8ab0243

Please sign in to comment.