image: node:8

pipelines:

  default:
    - step:
        caches:
          - node
        script:
          # Install and run coverage
          - npm install
          - npm run cover
          - npm install -g gulp
          - gulp sonar

  tags:
    '*':
      - step:
          caches:
            - node
          script:
            # Install and run coverage
            - npm install
            - npm run cover
            - npm install -g gulp
            - gulp sonar

  branches:
    develop:
      - step:
          caches:
            - node
          script:
            # Install and run coverage
            - npm install
            - npm run cover
            - npm install -g gulp
            - gulp sonar

options:
  max-time: 30
