Skip to content
Browse files

Wip:

* Dependencies
* Rakefile to simplify tasks
* gitignore
  • Loading branch information...
1 parent 589d975 commit ee4fbf3a4e365a497daf1356430cffa888cafad0 @madtrick committed
Showing with 44 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +21 −0 Rakefile
  3. +15 −0 espec
  4. +6 −0 rebar.config
View
2 .gitignore
@@ -0,0 +1,2 @@
+ebin/
+deps/
View
21 Rakefile
@@ -0,0 +1,21 @@
+task :clean do
+ sh "rebar clean"
+end
+
+task :build => :clean do
+ sh "rebar compile"
+end
+
+task :shell do
+ sh "erl -pa ebin deps/*/ebin"
+end
+
+task :features do
+ sh "rebar compile run-features path=test/acceptance skip_deps=true"
+end
+
+task :spec do
+ sh "rebar compile && ERL_LIBS='deps/' ./espec test/spec/"
+end
+
+task :default => :build
View
15 espec
@@ -0,0 +1,15 @@
+#!/usr/bin/env escript
+%%! -smp enable -sname espec_runner -pa deps/*/ebin -pa ebin
+
+
+main([]) ->
+ usage();
+main(Args) ->
+ espec_bin:run_spec_files_from_args(Args).
+
+-spec usage() -> term().
+usage() ->
+ io:format("Usage: espec [files or directories]\n"),
+ halt(1).
+
+
View
6 rebar.config
@@ -0,0 +1,6 @@
+{deps, [
+ {espec, ".*", {git, "https://github.com/lucaspiller/espec.git", {branch, "master"}}},
+ {hamcrest, ".*", {git, "https://github.com/hyperthunk/hamcrest-erlang.git", {branch, master}}},
+ {meck, ".*", {git, "https://github.com/eproxus/meck.git", {branch, master}}}
+]}.
+

0 comments on commit ee4fbf3

Please sign in to comment.
Something went wrong with that request. Please try again.