diff options
Diffstat (limited to 'test/asset')
-rw-r--r-- | test/asset/artifact/minici.yaml | 25 | ||||
-rw-r--r-- | test/asset/run/dependencies.yaml | 55 | ||||
-rw-r--r-- | test/asset/run/explicit.yaml | 7 | ||||
-rw-r--r-- | test/asset/run/external.yaml | 42 | ||||
-rw-r--r-- | test/asset/run/norepo-basic.yaml | 9 | ||||
-rw-r--r-- | test/asset/run/repo-basic.yaml | 7 | ||||
-rw-r--r-- | test/asset/run/repo-basic2.yaml | 15 |
7 files changed, 160 insertions, 0 deletions
diff --git a/test/asset/artifact/minici.yaml b/test/asset/artifact/minici.yaml new file mode 100644 index 0000000..7204bb3 --- /dev/null +++ b/test/asset/artifact/minici.yaml @@ -0,0 +1,25 @@ +job generate: + checkout: null + + shell: + - echo "content 1" > f1 + - 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: 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 diff --git a/test/asset/run/explicit.yaml b/test/asset/run/explicit.yaml new file mode 100644 index 0000000..d543d16 --- /dev/null +++ b/test/asset/run/explicit.yaml @@ -0,0 +1,7 @@ +job build: + shell: + - ls subdir | sed -e ':a;N;s/\n/ /;ta' > list + - echo >> list + + artifact out: + path: list diff --git a/test/asset/run/external.yaml b/test/asset/run/external.yaml new file mode 100644 index 0000000..f1d2b2c --- /dev/null +++ b/test/asset/run/external.yaml @@ -0,0 +1,42 @@ +repo first: + path: ../first + +repo second: + path: ../second + + +job single: + checkout: + repo: first + dest: first + + shell: + - tar czf first.tar.gz first + + artifact tarball: + path: ./first.tar.gz + +job multiple: + checkout: + - repo: first + dest: first-subdir + subtree: subdir + - repo: second + dest: second-subdir + subtree: sub + + shell: + - tar czf pack.tar.gz first-subdir second-subdir + + artifact tarball: + path: ./pack.tar.gz + +job combine: + checkout: null + + shell: + - ls + + uses: + - single.tarball + - multiple.tarball diff --git a/test/asset/run/norepo-basic.yaml b/test/asset/run/norepo-basic.yaml new file mode 100644 index 0000000..2000858 --- /dev/null +++ b/test/asset/run/norepo-basic.yaml @@ -0,0 +1,9 @@ +job success: + checkout: null + shell: + - "true" + +job failure: + checkout: null + shell: + - "false" diff --git a/test/asset/run/repo-basic.yaml b/test/asset/run/repo-basic.yaml new file mode 100644 index 0000000..82f5650 --- /dev/null +++ b/test/asset/run/repo-basic.yaml @@ -0,0 +1,7 @@ +job success: + shell: + - "true" + +job failure: + shell: + - "false" diff --git a/test/asset/run/repo-basic2.yaml b/test/asset/run/repo-basic2.yaml new file mode 100644 index 0000000..bcfac50 --- /dev/null +++ b/test/asset/run/repo-basic2.yaml @@ -0,0 +1,15 @@ +job success: + shell: + - "true" + +job third: + shell: + - "true" + +job failure: + shell: + - "false" + +job fourth: + shell: + - "true" |