message: Skip expensive stages for tag builds
diff: -stages:
  - - lint
  - - test
  - - integration
  - - e2e
  - - deploy
  language: node_js
  node_js:
  - 10
  - 8
  - 9
  - 11
  +stages:
  + - lint
  + - test
  + - integration
  + - e2e
  + - deploy
  branches:
  except:
  - gh-pages
  @@ -38,13 +38,14 @@ deploy:
  on:
  repo: bkimminich/juice-shop
  tags: true
  -
  jobs:
  include:
  - stage: lint
  + if: tag IS blank
  install: npm install standard && cd frontend && npm install && cd ..
  script: npm run lint
  - stage: integration
  + if: tag IS blank
  script:
  - npm test
  - npm run frisby
  @@ -52,6 +53,7 @@ jobs:
  - "./node_modules/.bin/lcov-result-merger 'build/reports/coverage/**/lcov.info' 'build/reports/coverage/lcov_merged.info'"
  - "./node_modules/.bin/codeclimate-test-reporter < ./build/reports/coverage/lcov_merged.info"
  - stage: e2e
  + if: tag IS blank
  script: NODE_ENV=ctf npm run protractor
  - stage: deploy
  if: branch = master OR branch = develop
  