Install FDB synchronously
[couchdb-erlfdb.git] / rebar.config
index ea28a410bf9d8d25d2e71793fc35f46b79a81c8d..13baf96c3d4dcb0cf45a5f89e904f7f248edba46 100644 (file)
@@ -1,4 +1,5 @@
 {plugins, [
 {plugins, [
+    coveralls,
     pc
 ]}.
 
     pc
 ]}.
 
     {"priv/erlfdb_nif.so", ["c_src/*.c"]}
 ]}.
 
     {"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"}
         ]}
 
 {profiles, [
     {devcontainer, [
         {eunit_opts, [
             {sys_config, "devcontainer.config"}
         ]}
-    ]},
-    {win32_external_fdbserver, [
-        {eunit_opts, [
-            {sys_config, "win32_external_fdbserver.config"}
-        ]}
     ]}
 ]}.
 
     ]}
 ]}.
 
@@ -68,3 +32,9 @@
     debug_info,
     verbose
 ]}.
     debug_info,
     verbose
 ]}.
+
+{cover_enabled, true}.
+{cover_export_enabled, true}.
+{coveralls_coverdata, "_build/devcontainer+test/cover/*.coverdata"}.
+{coveralls_service_name, "github"}.
+{coveralls_parallel, true}.