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 28, 2019
1 parent 9d1d9ea commit afff6b0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@ otp_release:
- 19.3
script:
- rebar3 ct --readable=false
- rebar3 compile
after_success:
- rebar3 as test coveralls send
deploy:
provider: script
script: ./hex.sh
skip_cleanup: true
on:
tags: true
otp_release: "22.0"
14 changes: 14 additions & 0 deletions hex.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

## Setup hex user
mkdir -p ~/.hex
echo '{username,<<"'${HEX_USERNAME}'">>}.' > ~/.hex/hex.config
echo '{key,<<"'${HEX_KEY}'">>}.' >> ~/.hex/hex.config

## Add the rebar3 hex plugin to global
mkdir -p ~/.config/rebar3
echo '{plugins, [rebar3_hex]}.' > ~/.config/rebar3/rebar.config

rebar3 hex publish <<EOF
y
EOF
2 changes: 1 addition & 1 deletion src/fieldmask.app.src
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{application, fieldmask,
[
{description, "Implements Google Partial Response/json-mask in Erlang."},
{vsn, "0.0.1"},
{vsn, "git"},
{modules, []},
{registered, []},
{applications, []},
Expand Down

0 comments on commit afff6b0

Please sign in to comment.