summaryrefslogtreecommitdiff
path: root/test/asset
diff options
context:
space:
mode:
Diffstat (limited to 'test/asset')
-rw-r--r--test/asset/artifact/minici.yaml14
-rw-r--r--test/asset/run/dependencies.yaml55
2 files changed, 66 insertions, 3 deletions
diff --git a/test/asset/artifact/minici.yaml b/test/asset/artifact/minici.yaml
index 065ae84..7204bb3 100644
--- a/test/asset/artifact/minici.yaml
+++ b/test/asset/artifact/minici.yaml
@@ -3,15 +3,23 @@ job generate:
shell:
- echo "content 1" > f1
- - mkdir subdir
- - echo "content 2" > subdir/f2
+ - mkdir -p dir/subdir
+ - echo "content 2" > dir/f2
+ - echo "content a" > dir/fa
+ - echo "content b" > dir/subdir/fb
- echo "content 3" > f3
artifact first:
path: f1
artifact second:
- path: subdir/f2
+ path: dir/f2
artifact third:
path: f3
+
+ artifact dir:
+ path: dir
+
+ artifact sdir:
+ path: dir/subdir
diff --git a/test/asset/run/dependencies.yaml b/test/asset/run/dependencies.yaml
new file mode 100644
index 0000000..7452b5a
--- /dev/null
+++ b/test/asset/run/dependencies.yaml
@@ -0,0 +1,55 @@
+job first:
+ shell:
+ - touch x
+
+ artifact out:
+ path: x
+
+
+job second:
+ uses:
+ - first.out
+
+ shell:
+ - mv x y
+
+ artifact out:
+ path: y
+
+
+job third:
+ uses:
+ - first.out
+
+ shell:
+ - mv x z
+
+ artifact out:
+ path: z
+
+
+job fourth:
+ uses:
+ - second.out
+
+ shell:
+ - mv y w
+
+ artifact out:
+ path: w
+
+
+job fifth:
+ uses:
+ - third.out
+ - fourth.out
+
+ shell:
+ - mv z z2
+ - mv w w2
+
+ artifact out1:
+ path: z2
+
+ artifact out2:
+ path: w2