.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: eifDuyq1BW3DumTP1coD+AE2W0nCs6sNLT3YAwa0JF+UwrH6TR1mXXX2Ja9GJr1UlDmMbJ2XFdY4z1cRlIyJrv2jchDjq77f5G6NL0Z0D5ZwJGVr7Flhl8qCWhtIgSM39oaeymX9z9gWK44HpeGOVdZM1HYDlRvpCdE3QuFypu/mlVl6GfM0esM77auv2ZEnbxtORCQ5DfvNHbUX6jBeZbXlUqmiRjciQu9Q4xajm5c61f3e550OdwsPlXGSjFlhV6AcxLdW0Q9wlBawCNehExm05P/VM94jJ+DpUrKTcs1TBBknRf5skm6Y0Twps1wO+SFknBvyyN4Ku94VOa3YkW/e6ryfmrmUVO0KjAUZUuh7082lj011syPcaW9LUDyC3PQQyIQQ5ffWa3ZNF8e5IcZdRywylty5ceLivnaN19NyOZ9mf6Tl2rHGbX6QExZeS6c5uF3Uy85/WDLDBcQopq8pZ0qtEkSceC4Il/Nbv78Dc0031bg6HJmUmEOkCKusMl1Is6EJkDjmBFVw5AjBc+8Fll6qJc1mhrvc4JE1E3m7gOkKdqLn29QfwGfUI+ymKkfISUD55oyql0wawVf8CfzEdq1sX3I3V9XRcKGS1HIEpsIxQiKLMqG3wwhij0Dtg/zKLmVfhrbYK54Vc4W1DOwInD2fMMqHjXqwI0Ky2OY=
on_success: change
on_failure: always
env:
global:
- secure: oVdtXvGIRMLoxqynPbLyUaiSb/h6TEDWkR0+WoffBh/Jcy3n3IUI0KgG6yr2Pl2UJQADWpUBebSjhnuGHCni9qey5rorhwnDU13XqGz0WamRWJRR/UzBSa0flDanbzQGRfsu1HwcB1iIN6hC4jvS3vv+FRZwRUEzDSB8Gl/n6EysnUk68xvvCRryXyF7VSOU6SGMgddhxRKRCDSJ9cx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Ib0G/eRmpRxPO6Vxn451XTUa3Npr6G+PSfbCA6eEzl3a0YGdp9kIbjxvAufjL5/wQkB/b1BBGDwU=
- secure: Rn0Az3UWePkRVlt42dv2DTodrS67SbsgHApyswWqQxc6lnqe1BmQYYoI+iA7/hpfqPcyUpvX5j+GuyxS7E6YTGWqJVpYiCpSALy9T2A9k/hwVtALuS9OtDE5IEEG3diPVoBwnZixLE3SkvL3uwcYqv3LL6VkHTg3zb+3iI+8CrMEMkTm6e9Ebyg7TcYVbk6VpZ25CIChuJe+8zpkCF/n1dN6GcueV6V/qVId/nvQRpg4sd4RF2nzQIvQ+kIfgypfQY7PDaN1ZUOafxxm6giKp8ffpA5muvR2CI1NyKrlLGZhSjy14A1R79+ZF2JRzkTcDDC1r2h6kksJwZW1MOmULGTNnW/gZc981+WJU1P5GIOSuOKkGMvW/VlMLvbz2TvpVKnv4gOv469+3zXfsCVz/aHUyOePSKpXcJzIgSC2eUD6167lkoQxbw0mutVskmgPXXwA52ONro0DefT5VC4FWtnw+5s2yHa7Kx3frv3Bh4BdnRoIvo7qvMwvzUrbnRz4sDrRdCn8EwPPyaH1q4/F09b+himxJB8s9CUr6jOa7EoBdqNR5cL+UIzrIWplgX+1HsdHTgyIT3xwQSjYjUbJ2tQ4rFV7mZszlsxoO37x0nalo6QEkY2E5PvQBHhlA7SIbEasF5V5v0WeJ30RS46LByaWxC06Nykbf7GvdwRXsw4=
- export GIT_AUTHOR_NAME="EndemolShineGroupUser"
- 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