aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/aedifex/command/deploy.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-12-03 02:09:57 -0400
committerEduardo Julian2020-12-03 02:09:57 -0400
commit0205e5146b50ab066d152fccda0fc8cef4eef852 (patch)
treeda2d89132da8f09344e26db78d0e43ca1095ee7f /stdlib/source/test/aedifex/command/deploy.lux
parent28c724857d76afdc40b5b036f415cc151eb66263 (diff)
Detect duplicate files coming from dependencies.
Diffstat (limited to 'stdlib/source/test/aedifex/command/deploy.lux')
-rw-r--r--stdlib/source/test/aedifex/command/deploy.lux43
1 files changed, 25 insertions, 18 deletions
diff --git a/stdlib/source/test/aedifex/command/deploy.lux b/stdlib/source/test/aedifex/command/deploy.lux
index 5e4f6615b..773069322 100644
--- a/stdlib/source/test/aedifex/command/deploy.lux
+++ b/stdlib/source/test/aedifex/command/deploy.lux
@@ -30,20 +30,24 @@
[program
[compositor
["." export]]]
- [///
- ["@." profile]
- ["@." repository]]
+ [//
+ ["@." version]
+ [//
+ ["@." profile]
+ ["@." repository]]]
{#program
["." /
- ["//#" /// #_
- ["#" profile]
- ["#." action]
- ["#." pom]
- ["#." local]
- ["#." hash]
- ["#." repository (#+ Identity Repository)]
- ["#." artifact (#+ Artifact)
- ["#/." extension]]]]})
+ ["/#" // #_
+ ["#." clean]
+ ["/#" // #_
+ ["#" profile]
+ ["#." action]
+ ["#." pom]
+ ["#." local]
+ ["#." hash]
+ ["#." repository (#+ Identity Repository)]
+ ["#." artifact (#+ Artifact)
+ ["#/." extension]]]]]})
(def: (make-sources! fs sources)
(-> (file.System Promise) (Set Path) (Promise (Try Any)))
@@ -65,12 +69,14 @@
(def: (execute! repository fs identity artifact profile)
(-> (Repository Promise) (file.System Promise)
Identity Artifact ///.Profile
- (Promise (Try Any)))
+ (Promise (Try Text)))
(do ///action.monad
- [_ (..make-sources! fs (get@ #///.sources profile))
+ [#let [console (@version.echo "")]
+ _ (..make-sources! fs (get@ #///.sources profile))
_ (: (Promise (Try Path))
- (file.make-directories promise.monad fs (///local.repository fs)))]
- (/.do! repository fs identity artifact profile)))
+ (file.make-directories promise.monad fs (///local.repository fs)))
+ _ (/.do! console repository fs identity artifact profile)]
+ (!.use (\ console read-line) [])))
(def: #export test
Test
@@ -90,7 +96,7 @@
fs (file.mock (\ file.default separator))]]
(wrap (do {! promise.monad}
[verdict (do {! ///action.monad}
- [_ (..execute! repository fs identity artifact profile)
+ [logging (..execute! repository fs identity artifact profile)
expected-library (|> profile
(get@ #///.sources)
set.to-list
@@ -121,7 +127,8 @@
(\ binary.equivalence =
(///hash.data (///hash.md5 expected-library))
actual-md5)]]
- (wrap (and deployed-library!
+ (wrap (and (text\= //clean.success logging)
+ deployed-library!
deployed-pom!
deployed-sha-1!
deployed-md5!)))]