.gitlab-ci.yml 934 Bytes
Newer Older
1 2 3
# Defines stages which are to be executed
stages:
  - syntax
Marius Burkard's avatar
Marius Burkard committed
4
  - syntax_diff
5 6 7 8 9 10 11

#
### Stage syntax
#

syntax:lint:
  stage: syntax
12
  image: edbizarro/gitlab-ci-pipeline-php:7.2
13
  allow_failure: false
14 15
  only:
    - schedules
Marius Burkard's avatar
Marius Burkard committed
16
    - web
Marius Burkard's avatar
Marius Burkard committed
17
    - merge_requests
18 19 20

  script:
    - echo "Syntax checking PHP files"
Marius Burkard's avatar
Marius Burkard committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    - bash ./.git-scripts/syntax.sh


syntax_diff:lint:
  stage: syntax
  image: edbizarro/gitlab-ci-pipeline-php:7.2
  allow_failure: false
  only:
    - web
    - pushes
    - branches

  script:
    - echo "Syntax checking PHP files"
    - bash ./.git-scripts/syntax.sh commit

#syntax:lint:
#  stage: syntax
#  image: edbizarro/gitlab-ci-pipeline-php:7.2
#  allow_failure: false
#  only:
#    - schedules
#    - web
#    - merge_requests
#
#  script:
#    - composer require overtrue/phplint
#    - echo "Syntax checking PHP files"
#    - echo "For more information http://www.icosaedro.it/phplint/"
#    - vendor/bin/phplint
51