.travis.yml
language: node_js
cache: yarn
node_js:
- 8
- 10
before_install:
- npm i -g yarn
script:
- yarn lint
- yarn build
- yarn test
# Environment variables marked with `secure` should be securely encrypted as described at:
# https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables
notifications:
slack:
rooms:
- secure: Iwq5XUJrMHmrQuQ2mq8+gEB+6xpsSh3vz3HevUsYyH1oDJ82ajkdKKLEhgsTKz2Xd2rr7BpMDmXeEEyMw5ZfYv6AHu3ZliMBPbXuNm/ay8DoSB2WcfbvxtlbJd/LfHBNy4ntql8w4SC96+2xqClBvKK5EO2DSHHyLijDErVTEXPk7UpJ8AGVzfDmmU3LVzY2y0w/GZ0emGPnWBUBSQhbuz7mQ8wSuoO3gRc6cKLnzFKB1R6KUMpowOL8PVJIwYYCmq+2HIhn8eMYjQC+Zy4xUfRW0rmSkrn3bcuEzrLNFHIzxNyMPn/BEDVtsDjquQqO1Gd0m0klUK1ZDs6GsAA1fPJX9GhvCiakr+USGVW8izcsTjoD7a9nhX46T4LANtvALPrgeciq/X4Y3DTnFvhnHrc4z8FZ8GbTAmT344oB+X5YjnjNzGwb/DLYFIOaToQI+JRX4/oaTgBM5Vp6SbiURUdUXzarYn/600QxdIdqBNqG0da0uarRRnuHCwxWd6HcSZk22igt++OiCrPJ7v6a1YqkXY3ycoeFfWgC1JEQpL4sLdZeoaPbNPcyLpmv9o/lWJfpDrkSmeLnS8GA5uebsWdL7Ze2sCZwZex1aYtq4/A7weKyxiomE0A8cAB2bffYhWtyJ7dzSROrLhbVL6QeBhapjKH30z36xbXy+bPKrVY=
on_success: change
on_failure: always
env:
global:
- secure: JMeaWgzo4NRaaUnpHdjRSrd8ko7BYbhbKa60aFFH5quI5BOBFzsnvdN+pCqAYW+ZfqjqM5kAsp4BjXGXkCYt/TYCn+Klkh6dA/sZzBkjOOaPdVlQpTzXeP3SLZWFLVxLaCVYUYw0tHecCyUUNFmifowVUQB8VfI6p4zCgr4xIHrRD0IrSiPUeCfLqIhl4AJCKO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KXcv8f3RRBxEMVZgTwYCsmaq560vrSiZqggh7AMsKAgI7Tc8qVeHSuL7wAJuVVk2GYu+X1tsPpK2lD3gG9o6ocC73sLBLv9qoRyDPqE=
- secure: SZCyEZLJA6S+V0CXG15644BE6M+swSOkH9gCwh7JhMSHSbu5wNAd//xuLeKiZvoAxzxKSKKcYXjj9oCvPQ1oTn4fsSppIl0mVc3GO3pmhJXLpPS3tEjGjUSrHO0TxsrjX6W0m834I4LuIKdEqn92M6TYYeB8q0mzb/sFBRLlrz1gnlKtvkvmx759OLhqJNqpI5XmaFOuhpoUyn8tOL/Zhdnxu7UJHE65qUYPZqaOzi+QO1yyPv1PjwPBNqpM2e5vwUx+l+fN1VzYyHTv1Ez75YzDNaIR2Crz4riSr7/pQquyS3HhcOCL0GZsjTlzfbE9mhrbLRvK7432ZrD3SHXKu4wYfrohxQrvdA2b5g2zZZjrN55KwIoywpPltLVGxhvu1VRNZBi9g3TDf4wZ7KUvbNFwx/gPlXt/M9QbRqaPIfxcPWwwirBjZYlVy8Nh9aR8ucdrENrP0a4+AwB/DnNcnpYVU6VxVd7sC2mQHj7cZcNYoXSPr/R+p+xedz0/JGyHll0ib+2ufWQ+kS7GOv3bkaS5/h+baqDSr705u/xAKcIq83PS12CKtlCgthFBlpSHXS5yx6J8Hm0ZarmzSqJPYxBtj5Rhu1KHDf47+K1vJOgSx28rlB4XAX/1Z07J9E3Xl4frUaea0LDPvCgnzGOQV/4AAN0hJZcpCANN1MVQg30=
- export GIT_AUTHOR_NAME="esg-bot"
- export GIT_AUTHOR_EMAIL="tech@endemolshine.com"
- export GIT_COMMITTER_NAME="esg-bot"
- export GIT_COMMITTER_EMAIL="tech@endemolshine.com"
jobs:
include:
- stage: coverage
if: type != pull_request
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- yarn global add codecov
- codecov
- stage: release
if: branch = master AND type != pull_request
after_success:
- yarn semantic-release
- git clone https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
- cd $TRAVIS_REPO_SLUG
- git fetch --all
- git merge origin/master
- git push