aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-28 09:10:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-28 09:10:30 +0200
commit3db88657cc480e658c58f72a06583919da587b5b (patch)
tree9666295278c4ffaf474d3b37ba03b8e0ac704d79
parent2f06f60246931e409f151d89299b3630d2f1fdb4 (diff)
Use build.version.stage value to pick repository for bdep-publish tests
-rw-r--r--tests/publish.test13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/publish.test b/tests/publish.test
index 43edd42..0b50270 100644
--- a/tests/publish.test
+++ b/tests/publish.test
@@ -4,11 +4,16 @@
.include common.test project.test
-# By default simulate the package submissions to the stage repository.
+# Repository to use for the package submissions simulation.
#
-repository = ($config.bdep.test.repository != [null] \
- ? "$config.bdep.test.repository" \
- : 'https://stage.build2.org')
+# Note: could use empty config.bdep.test.repository value to suppress
+# these test (which require network access).
+#
+repository = ($config.bdep.test.repository == [null] \
+ ? ($build.version.stage \
+ ? 'https://stage.build2.org' \
+ : 'https://cppget.org') \
+ : "$config.bdep.test.repository")
test.arguments += --repository "$repository" --control 'none' --yes \
--email user@example.com