Commit b2cc355d authored by Adrian DC's avatar Adrian DC
Browse files

chore: test: add empty '{before,after}_script' and 'script' tests

parent 32104168
Loading
Loading
Loading
Loading
Loading
+8 −0
Changes for tests/scripts/.gitlab-ci.incomplete.yml: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
image: alpine:3

stages:
  - scripts

'Job 1':
  stage: scripts
  script: []
+12 −0
Changes for tests/scripts/.gitlab-ci.yml: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -65,3 +65,15 @@ after_script:
  after_script:
    - 'false'
    - echo 'After Job 7'

'Job 8':
  stage: scripts
  before_script: []
  script:
    - echo 'Job 8'

'Job 9':
  stage: scripts
  script:
    - echo 'Job 9'
  after_script: []
+3 −0
Changes for tests/scripts/test.sh: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -17,3 +17,6 @@ gitlabci-local 'Job 4'
gitlabci-local 'Job 5' && exit 1 || true
gitlabci-local 'Job 6' && exit 1 || true
gitlabci-local 'Job 7'
gitlabci-local 'Job 8'
gitlabci-local 'Job 9'
gitlabci-local -c ./.gitlab-ci.incomplete.yml -p && exit 1 || true