.gitlab-ci.yml 819 Bytes
Newer Older
1 2 3
cache:
  key: "$CI_COMMIT_REF_NAME-$CI_JOB_STAGE"
  paths:
Thomas Löffler's avatar
Thomas Löffler committed
4
    - Build/cache/
Thomas Löffler's avatar
Thomas Löffler committed
5
    - Build/node_modules/
6

7
stages:
8
  - test
9 10
  - build

11 12 13 14
test:typoscript:
    stage: test
    image: composer:1
    before_script:
Thomas Löffler's avatar
Thomas Löffler committed
15
      - composer global require helmich/typo3-typoscript-lint
16
    script:
17
      - /tmp/vendor/bin/typoscript-lint -c typoscript-lint.yml --fail-on-warnings
18
    allow_failure: true
19

20 21 22 23 24 25 26 27
test:php:
    stage: test
    image: ekreative/php-cs-fixer:2
    variables:
        GIT_STRATEGY: "clone"
    script:
        - php-cs-fixer fix --dry-run --config=Build/.php_cs --diff --diff-format=udiff

28
build:
29
  image: node:9
30 31
  stage: build
  before_script:
32
    - npm config set cache cache/npm/ --global
Thomas Löffler's avatar
Thomas Löffler committed
33
    - cd Build
34
  script:
35
    - npm install > /dev/null
36
    - npm run ci
37 38
  artifacts:
    paths:
Markus Sommer's avatar
Markus Sommer committed
39
      - Resources/Public/