Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ __dummy.html
/test/expected-describe-data-2-dmd-output
/test/describe-project/dummy.dat
/test/describe-project/dummy-dep1.dat

# Ignore coverage files
cov/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ matrix:
include:
- d: dmd-2.068.2-b1
- d: dmd-2.068.1
- d: dmd-2.067.1
env:
- COVERAGE=true
- d: dmd-2.067.1
- d: dmd-2.066.1
- d: dmd-2.065.0
- d: dmd-2.064.2
Expand Down
4 changes: 1 addition & 3 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ import dub.commandline;

int main(string[] args)
{
version (unittest) return 0;
else return runDubCommandLine(args);
return runDubCommandLine(args);
}

19 changes: 16 additions & 3 deletions source/dub/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ import std.encoding : sanitize;
// Workaround for libcurl liker errors when building with LDC
version (LDC) pragma(lib, "curl");

// Set output path and options for coverage reports
version (DigitalMars) version (D_Coverage) static if (__VERSION__ >= 2068)
{
shared static this()
{
import core.runtime, std.file, std.path, std.stdio;
dmd_coverSetMerge(true);
auto path = buildPath(dirName(thisExePath()), "../cov");
if (!path.exists)
mkdir(path);
dmd_coverDestPath(path);
}
}

enum defaultRegistryURL = "http://code.dlang.org/";

/// The default supplier for packages, which is the registry
Expand Down Expand Up @@ -472,14 +486,14 @@ class Dub {
{
import std.stdio;
import std.ascii : newline;

// Split comma-separated lists
string[] requestedDataSplit =
requestedData
.map!(a => a.splitter(",").map!strip)
.joiner()
.array();

auto data = m_project.listBuildSettings(platform, config, buildType,
requestedDataSplit, formattingCompiler, nullDelim);

Expand Down Expand Up @@ -1107,4 +1121,3 @@ class DependencyVersionResolver : DependencyResolver!(Dependency, Dependency) {
return null;
}
}