diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-06-03 08:41:42 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-06-03 08:41:52 -0400 |
commit | 8f8960e1ca30a44b00688691cc9688b0d2a14cd9 (patch) | |
tree | 68666a2f67cc0d5845bdda1fa2977dce061f28bc /source/merge.d | |
parent | 13822c77b8c06bba522a40fdccd9e0c8e6f7d547 (diff) | |
download | dm-8f8960e1ca30a44b00688691cc9688b0d2a14cd9.tar.gz |
Minor improvements:
* testdir can be changed
* testdir is no longer incorporated into the delivery
* pip calls will use an index if defined
* multiarg now returns empty string if input is empty
* remove clone repos if they already exist. guarantees pristine code/tests
Diffstat (limited to 'source/merge.d')
-rw-r--r-- | source/merge.d | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/merge.d b/source/merge.d index 528582c..fa625c8 100644 --- a/source/merge.d +++ b/source/merge.d @@ -176,10 +176,12 @@ int integration_test(ref Session_t session, .replace(".git", ""); outdir.mkdirRecurse; - if (!repo_root.exists) { - if (conda.sh("git clone --recursive " ~ pkg.repo ~ " " ~ repo_root)) { - return 1; - } + if (repo_root.exists) { + repo_root.rmdirRecurse; + } + + if (conda.sh("git clone --recursive " ~ pkg.repo ~ " " ~ repo_root)) { + return 1; } repo_root.chdir; @@ -206,12 +208,14 @@ int integration_test(ref Session_t session, if (!session.test_pip_requirements.empty) { if (conda.sh("python -m pip install " + ~ conda.multiarg("-i", session.pip_index) ~ " " ~ safe_install(session.test_pip_requirements))) { return 1; } } - if (conda.sh("python -m pip install -e .[test]")) { + if (conda.sh("python -m pip install " + ~ conda.multiarg("-i", session.pip_index) ~ " -e .[test]")) { return 1; } |