Skip to content
Snippets Groups Projects
Forked from ISPConfig / ISPConfig 3
1015 commits behind the upstream repository.
.gitlab-ci.yml 3.02 KiB
# Defines stages which are to be executed
stages:
  - syntax
  - syntax_diff
  - test
  - build

#
### Stage syntax
#

syntax:lint:
  stage: syntax
  image: edbizarro/gitlab-ci-pipeline-php:7.2
  allow_failure: false
  only:
    - schedules
    - web
    - merge_requests
    - /^\d+\.\d+\.\d+(p\d+)?$/

  script:
    - echo "Syntax checking PHP files"
    - 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

  except:
    - schedules
    - web
    - merge_requests
    - /^\d+\.\d+\.\d+(p\d+)?$/

  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


#test:install:
#  stage: test
#  image: jerob/docker-ispconfig
#  only:
#    - schedules
#    - web
#    - /^\d+\.\d+\.\d+$/
#  
#  script: