Skip to content

Commit

Permalink
Add support for travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alavrik committed Apr 10, 2013
1 parent 3550157 commit 19a230d
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
@@ -0,0 +1,17 @@
language: erlang

# install rebar 2.1.0-pre that supports 'raw' dependencies
before_install:
- wget https://github.com/alavrik/piqi-erlang/wiki/rebar
- chmod +x rebar

script: "./travis-ci"
otp_release:
- R16B
- R15B03
- R15B02
- R15B01
- R15B
- R14B04
- R14B03
- R14B02
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -10,6 +10,10 @@ deps:
$(REBAR) get-deps


test:
$(REBAR) eunit skip_deps=true


dialyzer: all .dialyzer_deps_plt
dialyzer --plt .dialyzer_deps_plt ./ebin

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -66,7 +66,7 @@ Some useful commands:

make test
make dialyzer
make -C addressbook/example deps all test
make -C examples/addressbook deps all test


License
Expand Down
2 changes: 1 addition & 1 deletion examples/addressbook/rebar.config
@@ -1,6 +1,6 @@

{deps, [
%{piqi_rpc, "", {git, "git://github.com/alavrik/piqi-rpc.git", {branch, "dev"}}}
%{piqi_rpc, "", {git, "git://github.com/alavrik/piqi-rpc.git", {branch, "master"}}}
{piqi_rpc, "", {git, "../../../.git", {branch, "HEAD"}}}
]}.

Expand Down
2 changes: 1 addition & 1 deletion examples/process_info/rebar.config
@@ -1,6 +1,6 @@

{deps, [
%{piqi_rpc, "", {git, "git://github.com/alavrik/piqi-rpc.git", {branch, "dev"}}}
%{piqi_rpc, "", {git, "git://github.com/alavrik/piqi-rpc.git", {branch, "master"}}}
{piqi_rpc, "", {git, "../../../.git", {branch, "HEAD"}}}
]}.

Expand Down
8 changes: 8 additions & 0 deletions travis-ci
@@ -0,0 +1,8 @@
#!/bin/sh -xe

export REBAR="`pwd`/rebar"

make

make test
make -C examples/addressbook deps all test

0 comments on commit 19a230d

Please sign in to comment.