-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from artefactop/improve_travis
Move to rebar3
- Loading branch information
Showing
7 changed files
with
59 additions
and
26 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 |
---|---|---|
@@ -1,8 +1,18 @@ | ||
.rebar3 | ||
_* | ||
.eunit | ||
deps | ||
*.o | ||
*.beam | ||
*.plt | ||
*.swp | ||
*.swo | ||
.erlang.cookie | ||
ebin | ||
log | ||
erl_crash.dump | ||
.rebar | ||
logs | ||
_build | ||
*.plt | ||
*.iml | ||
.idea | ||
ebin |
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,9 +1,13 @@ | ||
language: erlang | ||
script: rebar compile && rebar skip_deps=true eunit | ||
otp_release: | ||
- 18.3 | ||
- 17.5 | ||
- 18.0 | ||
- R16B03-1 | ||
- R15B02 | ||
|
||
- 17.1 | ||
- 18.3 | ||
before_script: | ||
- "./bootstrap_travis.sh" | ||
script: "./rebar3 eunit" | ||
deploy: | ||
provider: script | ||
script: scripts/hex.sh | ||
on: | ||
tags: true |
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,5 @@ | ||
#!/bin/sh | ||
|
||
curl -O -L https://s3.amazonaws.com/rebar3/rebar3 | ||
chmod +x rebar3 | ||
./rebar3 update |
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,8 +1,7 @@ | ||
{erl_opts, [debug_info, {src_dirs, ["src"]}]}. | ||
|
||
{deps, [ | ||
{erlsha2, ".*", {git, "https://github.com/vinoski/erlsha2", "2.2.1"}}, | ||
{jsx, ".*", {git, "git://github.com/talentdeficit/jsx.git", "2.8.0"}} | ||
{jsx,"2.8.0"} | ||
]}. | ||
|
||
{cover_enabled, true}. |
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,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 |
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,13 +1,15 @@ | ||
{application, ejwt, | ||
[ | ||
{description, "Encode/decode JSON Web Token"}, | ||
{vsn, git}, | ||
{registered, [ejwt]}, | ||
{applications, [ | ||
kernel, | ||
stdlib, | ||
jsx, | ||
erlsha2 | ||
]}, | ||
{env, []} | ||
]}. | ||
[ | ||
{description, "Encode/decode JSON Web Token"}, | ||
{vsn, "git"}, | ||
{registered, [ejwt]}, | ||
{applications, [ | ||
kernel, | ||
stdlib, | ||
jsx | ||
]}, | ||
{env, []}, | ||
{maintainers, ["Jose Luis Navarro"]}, | ||
{licenses, ["Apache"]}, | ||
{links, [{"Github", "https://github.com/artefactop/ejwt"}]} | ||
]}. |
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