Skip to content

Commit

Permalink
Various build process improvements
Browse files Browse the repository at this point in the history
* Add travisci support
* run code coverage, post result to coveall.io, add coverall.io badges
* add project info for hex package
  • Loading branch information
edwardt committed Jan 5, 2016
1 parent ca083d5 commit a963734
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ erl_crash.dump
src
*.swp
.DS_Store
*.*~
*~
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ before_install:
- wget http://www.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
- tar xfz thrift-0.9.3.tar.gz
- cd thrift-0.9.3 && ./configure --with-erlang --without-cpp --without-csharp --without-java --without-nodejs --without-lua --without-python --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go --without-haxe --without-d && sudo make install && cd ..
- mix local.hex --force
script:
- mix test
- MIX_ENV=test mix test
after_script:
- MIX_ENV=test mix coveralls.detail
cache:
directories:
- $HOME/.mix/archives
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Riffed

[![Build Status](https://travis-ci.org/pinterest/riffed.svg?branch=master)](https://travis-ci.org/pinterest/riffed)
[![Build Status](https://travis-ci.org/pinterest/riffed.svg?branch=master)](https://travis-ci.org/pinterest/riffed)
[![Coverage Status](https://coveralls.io/repos/pinterest/riffed/badge.svg?branch=master)](https://coveralls.io/r/pinterest/riffed?branch=master)


### Healing the rift between Elixir and Thrift.

Thrift's Erlang implementation isn't very pleasant to use in Elixir. It prefers records to structs, littering your code with tuples. It swallows enumerations you've defined, banishing them to the realm of wind and ghosts. It requires that you write a bunch of boilerplate handler code, and client code that's not very Elixir-y. Riffed fixes this.
Expand Down
26 changes: 24 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ defmodule Riffed.Mixfile do
erlc_paths: ["src", "ext/thrift/lib/erl/src"],
erlc_include_path: "ext/thrift/lib/erl/include",
thrift_files: Mix.Utils.extract_files(["thrift"], [:thrift]),
docs: [output: "doc/generated"]
docs: [output: "doc/generated"],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test]
]
end

Expand Down Expand Up @@ -46,7 +48,27 @@ defmodule Riffed.Mixfile do
{:mock, github: "jjh42/mock"},
{:exlager, github: "khia/exlager"},
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.8", only: :dev}
{:ex_doc, "~> 0.8", only: :dev},
{:excoveralls, github: "parroty/excoveralls", tag: "v0.4.3", override: true, only: :test}
]
end

defp description do
"""
Riffed Provides idiomatic Elixir bindings for Apache Thrift
"""
end

defp project_url do
"""
https://github.com/pinterest/riffed
"""
end

defp package do
[files: ["config", "lib", "test", "thrift", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Jon Parise", "Steve Cohen"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => project_url}]
end
end

0 comments on commit a963734

Please sign in to comment.