.gitlab-ci.yml 523 Bytes
Newer Older
Nessun's avatar
Nessun committed
1 2 3
stages:
  - lint

Hoto Cocoa's avatar
Hoto Cocoa committed
4 5 6 7
eslint:
  image: node:latest
  stage: lint
  script:
zlzleking's avatar
zlzleking committed
8
    - npm install -g eslint eslint-config-wikimedia eslint-plugin-json
Hoto Cocoa's avatar
Hoto Cocoa committed
9 10 11 12
    - eslint js --ignore-pattern 'lib/'
  cache:
    paths:
      - node_modules/
Nessun's avatar
Nessun committed
13 14

phpcs:
Hoto Cocoa's avatar
Hoto Cocoa committed
15
  image: php:7.1
Nessun's avatar
Nessun committed
16 17
  stage: lint
  script:
Hoto Cocoa's avatar
Hoto Cocoa committed
18
    - php composer.phar test
Hoto Cocoa's avatar
Hoto Cocoa committed
19 20 21
  cache:
    paths:
      - vendor/
22
      - composer.phar
Hoto Cocoa's avatar
Hoto Cocoa committed
23 24

  before_script:
Hoto Cocoa's avatar
Hoto Cocoa committed
25
    - apt-get update -yqq
26
    - apt-get install git -yqq
Hoto Cocoa's avatar
Hoto Cocoa committed
27
    - curl -sS https://getcomposer.org/installer | php
Hoto Cocoa's avatar
Hoto Cocoa committed
28
    - php composer.phar install
Hoto Cocoa's avatar
Hoto Cocoa committed
29