Install FDB synchronously
[couchdb-erlfdb.git] / rebar.config
index b4d2930e702737322f6fca28426a08cecb40e94f..13baf96c3d4dcb0cf45a5f89e904f7f248edba46 100644 (file)
@@ -1,7 +1,12 @@
 {plugins, [
+    coveralls,
     pc
 ]}.
 
+{project_plugins, [
+    erlfmt
+]}.
+
 {provider_hooks, [
     {pre, [
         {compile, {pc, compile}},
     {"priv/erlfdb_nif.so", ["c_src/*.c"]}
 ]}.
 
-{port_env, [
-    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
-        "CFLAGS", "$CFLAGS -I/usr/local/include -Ic_src/ -g -Wall -Werror"},
-    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
-        "CXXFLAGS", "$CXXFLAGS -I/usr/local/include -Ic_src/ -g -Wall -Werror"},
-    {"win32",
-        "CFLAGS", "$CFLAGS /I\"c:/Program Files/foundationdb/include\" /O2 /DNDEBUG"},
-    {"win32",
-        "CXXFLAGS", "$CXXFLAGS /I\"c:/Program Files/foundationdb/include\" /O2 /DNDEBUG"},
-
-    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
-        "LDFLAGS", "$LDFLAGS -L/usr/local/lib -lfdb_c"},
-    {"win32",
-        "LDFLAGS", "$LDFLAGS /LIBPATH:\"c:/Program Files/foundationdb/lib/foundationdb\" fdb_c.lib"}
-]}.
+% port_env compiler / linker flags dynamically generated in rebar.config.script
 
 {profiles, [
     {devcontainer, [
         {eunit_opts, [
             {sys_config, "devcontainer.config"}
         ]}
-    ]},
-    {win32_external_fdbserver, [
-        {eunit_opts, [
-            {sys_config, "win32_external_fdbserver.config"}
-        ]}
     ]}
 ]}.
 
@@ -46,3 +32,9 @@
     debug_info,
     verbose
 ]}.
+
+{cover_enabled, true}.
+{cover_export_enabled, true}.
+{coveralls_coverdata, "_build/devcontainer+test/cover/*.coverdata"}.
+{coveralls_service_name, "github"}.
+{coveralls_parallel, true}.