Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.05 KiB
Newer Older
cache:
  paths:
    - vendor/

before_script:
  - apt-get update; apt-get install -y zip unzip
  - composer install --optimize-autoloader --no-interaction --no-ansi --prefer-dist

lint:coding-guideline:
  image: tetraweb/php:7.0
  stage: test
  script:
    - mkdir result
    - ./vendor/bin/phpcs -s -n --report-full=result/phpcs-full.txt --report-diff=result/phpcs-diff.txt --report-summary=result/phpcs-summary.txt
  artifacts:
    when: on_failure
    paths:
      - result
test:5.3: &PHP-UNITTESTING
  image: tetraweb/php:5.3
  stage: test
  variables:
    TIMEZONE: "Europe/Berlin"
    WITH_XDEBUG: "true"
    - ./vendor/bin/phpunit --coverage-text --colors=never
test:5.4:
  <<: *PHP-UNITTESTING
  image: tetraweb/php:5.4
test:5.5:
  <<: *PHP-UNITTESTING
  image: tetraweb/php:5.5
test:5.6:
  <<: *PHP-UNITTESTING
  image: tetraweb/php:5.6
test:7.0:
  <<: *PHP-UNITTESTING
  image: tetraweb/php:7.0
test:7.1:
  <<: *PHP-UNITTESTING
  image: tetraweb/php:7.1
test:latest:
  <<: *PHP-UNITTESTING
  image: tetraweb/php:latest