diff options
Diffstat (limited to 'test/asset')
| -rw-r--r-- | test/asset/repo/checkout.yaml | 93 | ||||
| -rw-r--r-- | test/asset/run/dependencies.yaml | 27 |
2 files changed, 110 insertions, 10 deletions
diff --git a/test/asset/repo/checkout.yaml b/test/asset/repo/checkout.yaml new file mode 100644 index 0000000..f1bcbc8 --- /dev/null +++ b/test/asset/repo/checkout.yaml @@ -0,0 +1,93 @@ +repo r1: +repo r2: +repo r3: + +job checkout_subtree: + checkout: + - repo: r1 + dest: d1 + + - repo: r2 + subtree: s1 + dest: d2_s1 + + shell: + - find \! -name 'list?' -type f > list1 + + artifact out: + path: list1 + + +job checkout_common_root: + checkout: + - repo: r1 + dest: d1 + + - repo: r2 + subtree: s1 + dest: d2_s1 + + - repo: r2 + subtree: s2 + dest: d2_s2 + + shell: + - find \! -name 'list?' -type f > list2 + + artifact out: + path: list2 + + +job checkout_common_subtree: + checkout: + - repo: r3 + subtree: a/b/s1 + dest: d3_s1 + + - repo: r3 + subtree: a/b/c/s2 + dest: d3_s2 + + shell: + - find \! -name 'list?' -type f > list3 + + artifact out: + path: list3 + + +job checkout_common_subtree2: + checkout: + - repo: r1 + dest: d1 + + - repo: r2 + subtree: s1 + dest: d2_s1 + + - repo: r3 + subtree: a/b/c/s2 + dest: d3_s2 + + - repo: r3 + subtree: a/b/c/s3 + dest: d3_s3 + + shell: + - find \! -name 'list?' -type f > list4 + + artifact out: + path: list4 + + +job combined_subtree: + uses: + - checkout_common_root.out + - checkout_common_subtree2.out + + +job combined_all: + uses: + - checkout_subtree.out + - checkout_common_root.out + - checkout_common_subtree.out + - checkout_common_subtree2.out diff --git a/test/asset/run/dependencies.yaml b/test/asset/run/dependencies.yaml index 7452b5a..13d5e63 100644 --- a/test/asset/run/dependencies.yaml +++ b/test/asset/run/dependencies.yaml @@ -1,3 +1,5 @@ +repo other: + job first: shell: - touch x @@ -29,6 +31,11 @@ job third: job fourth: + checkout: + - dest: a + - repo: other + dest: b + uses: - second.out @@ -40,16 +47,16 @@ job fourth: job fifth: - uses: - - third.out - - fourth.out + uses: + - third.out + - fourth.out - shell: - - mv z z2 - - mv w w2 + shell: + - mv z z2 + - mv w w2 - artifact out1: - path: z2 + artifact out1: + path: z2 - artifact out2: - path: w2 + artifact out2: + path: w2 |