diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-09 22:42:35 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-12 21:20:53 +0100 |
| commit | e96ecb1ce8f81b3a256f6982c5da1aa7cbeb4e59 (patch) | |
| tree | 781d602220c142e9966736061ee82fbfa7ca1598 /test/script/publish.et | |
| parent | 652d3e82208da8a0b1bd052c7284b5904e59d20a (diff) | |
Changelog: Job section to publish artifacts to specified destination
Diffstat (limited to 'test/script/publish.et')
| -rw-r--r-- | test/script/publish.et | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/script/publish.et b/test/script/publish.et new file mode 100644 index 0000000..d5756cb --- /dev/null +++ b/test/script/publish.et @@ -0,0 +1,44 @@ +module publish + +import common + + +asset scripts: + path: ../asset/publish + + +test PublishFromDependency: + node n + shell on n: + mkdir workdir + cp ${scripts.path}/from_dependency.yaml workdir/minici.yaml + + spawn on n as p args [ "--destination=second:second_override", "--destination=third:./third", "--destination=fourth:fourth/with_dir", "--destination=fifth:fifth/with_dir", "workdir/minici.yaml", "run", "publish" ] + expect_result from p: + of "gen" result "done" + of "publish" result "done" + local: + expect /(.*)/ from p capture done + guard (done == "run-finish") + + shell on n as listing: + find . -path ./workdir/.minici -prune -o -type f -print + echo DONE + + expect from listing: + /.\/workdir\/minici.yaml/ + /.\/workdir\/first\/dest\/x/ + /.\/workdir\/first\/dest\/dir\/y/ + /.\/second_override\/dir2\/subdir\/z/ + /.\/third\/dir\/y/ + /.\/third\/dir2\/subdir\/z/ + /.\/fourth\/with_dir\/path\/for\/artifact/ + /.\/fourth\/with_dir\/dir\/for\/artifact\/x/ + /.\/fifth\/with_dir\/path\/for\/artifact\/z/ + /.\/fifth\/with_dir\/dir\/for\/artifact\/subdir\/z/ + /.\/fifth\/with_dir\/path2\/for\/artifact\/z2/ + /.\/fifth\/with_dir\/path2\/for\/artifact\/subdir\/z/ + /.\/fifth\/with_dir\/dir2\/for\/artifact\/dir2\/z2/ + /.\/fifth\/with_dir\/dir2\/for\/artifact\/dir2\/subdir\/z/ + /(.*)/ capture done + guard (done == "DONE") |