.gitlab-ci.yml 1.11 KB
Newer Older
Andrei Karas's avatar
Andrei Karas committed
1
stages:
2
- test
Andrei Karas's avatar
Andrei Karas committed
3 4 5 6
- deploy
- fail
- ok

7
image: debian:stable
8 9
before_script:
  - uname -a
10

11 12 13
testxml:
  stage: test
  script:
14
  - ./.tools/testxml.sh
15 16
  - pwd

17 18 19 20 21 22
contributors:
  stage: test
  script:
  - ./.tools/contributors.sh
  - pwd

Andrei Karas's avatar
Andrei Karas committed
23
pngcheck:
24 25 26 27
  stage: test
  script:
  - ./.tools/pngcheck.sh

Andrei Karas's avatar
Andrei Karas committed
28 29 30 31 32
imagemagiccheck:
  stage: test
  script:
  - ./.tools/imagemagiccheck.sh

Andrei Karas's avatar
Andrei Karas committed
33 34 35 36 37
licensecheck:
  stage: test
  script:
  - ./.tools/licensecheck.sh

Andrei Karas's avatar
Andrei Karas committed
38 39
manaplus:
  stage: test
40
  image: debian:unstable
Andrei Karas's avatar
Andrei Karas committed
41 42 43 44 45 46 47 48
  script:
  - ./.tools/manaplus.sh
  artifacts:
    paths:
    - shared
    when: always
    expire_in: 3 week

49 50 51 52 53 54 55 56 57 58
newlines:
  stage: test
  script:
  - ./.tools/newlines.sh
  artifacts:
    paths:
    - shared
    when: always
    expire_in: 3 week

Andrei Karas's avatar
Andrei Karas committed
59 60 61
pages:
  stage: deploy
  script:
62
  - ./.tools/deploy.sh
63
  - pwd
Andrei Karas's avatar
Andrei Karas committed
64 65 66 67 68
  artifacts:
    paths:
    - public
  only:
  - master
Andrei Karas's avatar
Andrei Karas committed
69

Andrei Karas's avatar
Andrei Karas committed
70 71 72
ok_job:
  stage: ok
  script:
73
  - pwd
74
  - echo $CI_BUILD_REF_NAME
Andrei Karas's avatar
Andrei Karas committed
75
  when: on_success
76
  dependencies: []
77 78
  variables:
    GIT_STRATEGY: none
Andrei Karas's avatar
Andrei Karas committed
79 80 81 82

fail_job:
  stage: fail
  script:
83 84
  - pwd
  - echo $CI_BUILD_REF_NAME
Andrei Karas's avatar
Andrei Karas committed
85
  when: on_failure
86
  dependencies: []
87 88
  variables:
    GIT_STRATEGY: none