diff options
Diffstat (limited to 'test/asset/run')
| -rw-r--r-- | test/asset/run/dependencies.yaml | 62 | ||||
| -rw-r--r-- | test/asset/run/many_repos.yaml | 109 | ||||
| -rw-r--r-- | test/asset/run/norepo-basic.yaml | 11 | ||||
| -rw-r--r-- | test/asset/run/rerun.yaml | 45 |
4 files changed, 227 insertions, 0 deletions
diff --git a/test/asset/run/dependencies.yaml b/test/asset/run/dependencies.yaml new file mode 100644 index 0000000..13d5e63 --- /dev/null +++ b/test/asset/run/dependencies.yaml @@ -0,0 +1,62 @@ +repo other: + +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: + checkout: + - dest: a + - repo: other + dest: b + + 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 diff --git a/test/asset/run/many_repos.yaml b/test/asset/run/many_repos.yaml new file mode 100644 index 0000000..d861433 --- /dev/null +++ b/test/asset/run/many_repos.yaml @@ -0,0 +1,109 @@ +repo r1: +repo r2: +repo r3: +repo r4: +repo r5: + +destination d1: + +job first: + checkout: + - repo: r1 + dest: d1 + - repo: r4 + dest: d4b + - repo: r3 + dest: d3 + - repo: r2 + dest: d2 + - repo: r4 + dest: d4 + + shell: + - touch some_file + + artifact out: + path: some_file + +job first_manual_revision: + checkout: + - repo: r1 + dest: d1 + - repo: r1 + dest: d1b + revision: tag1 + - repo: r2 + dest: d2b + revision: tag1 + - repo: r4 + dest: d4b + - repo: r3 + dest: d3 + revision: tag1 + - repo: r2 + dest: d2 + - repo: r4 + dest: d4 + + shell: + - touch some_file + + artifact out: + path: some_file + + +job second: + checkout: + - dest: main + - repo: r2 + dest: d2 + - repo: r5 + dest: d5 + - repo: r3 + dest: d3 + + shell: + - touch second_file + + artifact out: + path: second_file + + +job dependent: + uses: + - first.out + + shell: + - mv some_file some_other_file + + artifact out: + path: some_other_file + + +job dependent_publish: + publish: + - to: d1 + artifact: first.out + + +job transitive: + uses: + - dependent.out + + artifact out: + path: some_other_file + + +job combined: + uses: + - first.out + - second.out + + artifact out: + path: second_file + + +job combined_transitive: + uses: + - combined.out + - transitive.out diff --git a/test/asset/run/norepo-basic.yaml b/test/asset/run/norepo-basic.yaml index 2000858..ecd3a97 100644 --- a/test/asset/run/norepo-basic.yaml +++ b/test/asset/run/norepo-basic.yaml @@ -7,3 +7,14 @@ job failure: checkout: null shell: - "false" + +job block_recipe: + checkout: null + shell: | + mkdir dir + cd dir + export VAR='abc' + echo $VAR > var + + artifact out: + path: dir/var diff --git a/test/asset/run/rerun.yaml b/test/asset/run/rerun.yaml new file mode 100644 index 0000000..dc18b41 --- /dev/null +++ b/test/asset/run/rerun.yaml @@ -0,0 +1,45 @@ +job first: + shell: + - touch x + + artifact out: + path: x + + +job second: + uses: + - first.out + + shell: + - mv x y + + artifact out: + path: y + + +job first_fail: + shell: + - "false" + + artifact out: + path: x + + +job second_skip: + uses: + - first_fail.out + + shell: + - "true" + + artifact out: + path: y + + +job third: + uses: + - second.out + - second_skip.out + + shell: + - "true" |