Install FDB synchronously
[couchdb-erlfdb.git] / rebar.config
index d72bc82be714e2baa52e0c23e4eea70a1840f1ba..13baf96c3d4dcb0cf45a5f89e904f7f248edba46 100644 (file)
@@ -1,22 +1,40 @@
+{plugins, [
+    coveralls,
+    pc
+]}.
+
+{project_plugins, [
+    erlfmt
+]}.
+
+{provider_hooks, [
+    {pre, [
+        {compile, {pc, compile}},
+        {clean, {pc, clean}}
+    ]}
+]}.
+
 {port_specs, [
     {"priv/erlfdb_nif.so", ["c_src/*.c"]}
 ]}.
 
-{plugins, [rebar_gdb_plugin]}.
-
-{port_env, [
-    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
-        "CFLAGS", "$CFLAGS -Ic_src/ -g -Wall -Werror"},
-    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
-        "CXXFLAGS", "$CXXFLAGS -Ic_src/ -g -Wall -Werror"},
+% port_env compiler / linker flags dynamically generated in rebar.config.script
 
-    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
-        "LDFLAGS", "$LDFLAGS -lfdb_c"}
+{profiles, [
+    {devcontainer, [
+        {eunit_opts, [
+            {sys_config, "devcontainer.config"}
+        ]}
+    ]}
 ]}.
 
 {eunit_opts, [
+    debug_info,
     verbose
 ]}.
 
-{pre_hooks, [{"", compile, "escript enc compile"}]}.
-{post_hooks, [{"", clean, "escript enc clean"}]}.
+{cover_enabled, true}.
+{cover_export_enabled, true}.
+{coveralls_coverdata, "_build/devcontainer+test/cover/*.coverdata"}.
+{coveralls_service_name, "github"}.
+{coveralls_parallel, true}.