Permalink
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (65 sloc) 2.43 KB
language: node_js
node_js:
- 10
- 8
- 9
- 11
branches:
except:
- gh-pages
- l10n_develop
addons:
chrome: stable
code_climate:
repo_token:
secure: NC3ew4c92DO4SAdbJvaZkaRnEZaZcAr9NcxOeraqAKHRXY3COnerWGR8+kIE9KiadcRdatmu0sSjWldDcAZfmMwOraMI9CDkqdPSjtjciCVEFdGi+OPOvMY/gOJU6XeM7lsO5MvYD7mqChl2gR6s7IO/klPahf53c97PPDo3C90=
before_install:
- rm -rf node_modules
- rm -rf frontend/node_modules
script:
- npm test
- node_version=$(node -v); if [ ${node_version:1:2} = 10 ]; then npm run frisby; else echo "Skipping Frisby API tests on $node_version"; fi
- node_version=$(node -v); if [ ${node_version:1:2} = 10 ]; then NODE_ENV=ctf npm run protractor; else echo "Skipping Protractor e2e tests on $node_version"; fi
after_success:
- "./node_modules/.bin/lcov-result-merger 'build/reports/coverage/**/lcov.info' 'build/reports/coverage/lcov_merged.info'"
- node_version=$(node -v); if [ ${node_version:1:2} = 10 ]; then ./node_modules/.bin/codeclimate-test-reporter < ./build/reports/coverage/lcov_merged.info; else echo "Skipping Codeclimate analysis on $node_version"; fi
notifications:
webhooks:
urls:
- secure: QZ3/2h7hThg527PX1z7kTTRGL5jEbTTHRbetYHt8Gzgdhvtruq4cjxMQZdUcmxKlncAhoB976iFl/Ja9EpExgrXnt/Tj0Aft6JDc7g8y0kuD/SiQpFT7d46R7vOTJeFHyMzfQN9M/h81DXrG+VO5OPGR/QYNa39kMzkTc86tt1E=
on_success: always
on_failure: always
on_start: never
slack:
rooms:
secure: jis/Fcasy+4QCqg6SZnf1XxXTNFrQENutYCN4QuMUQbfiD6QsLxTQS5o0MZ8e9EYTdptUXmjjgkaEulxO5fIUtmDcOrKcPxToDMjyCZEglfEf9CzRVRap7LnZwoCZ5yet/0E68qt4QhfTgfwYc9QIfSZo45rdyNS6BXI2vomGqE=
on_success: change
on_failure: change
on_start: never
on_pull_requests: false
before_deploy:
- rm -rf node_modules
- npm install --production
- npm run package
deploy:
- provider: heroku
api_key:
secure: faVT3Ne/O7lVo0+pTm6RcXss0ivvSoODaxMkiVwdpk/51/EsRd4+/Gjmp3RGPmW5H5luOephsI8uFMMhgKiu5i3NV58ZSx29Z0aby+bfIhesZGZqJQvxeW8B0J8vlQFnEHP6xc6SAlXSdNjNpDeBaV7WSFSGKGp4Nh5QyO2ySLI=
app:
master: juice-shop
develop: juice-shop-staging
on:
repo: bkimminich/juice-shop
node: 10
- provider: releases
overwrite: true
api_key:
secure: fHybcH65ZdS5ITVKH2tIVBITVSiRQJ1AuWqLP16gyAz5pdmWbLM5gA/74zCozanRmuB+7pGFbhDNm075JWoEDVrWSFDLnNiXvfgUYa4oVEiWZlLvOfSARaU3AQPlVvFVhIbG9SA5IEwTtNFbyHjqLjGn/DSBpiIDqqxhF57vw7Q=
file: dist/*
skip_cleanup: true
file_glob: true
draft: true
tag_name: "$TRAVIS_TAG"
on:
repo: bkimminich/juice-shop
tags: true