.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: I9jUDCBxlurM9877UIXga2H4y4rzLsoKQC3OfqL3Wfl5nex2OtneVa7WrDAVXoa6v7nJn0l1NP7KfR4EPbWcScywTKjdPCoo7iDn7q6r2b+OHtyNQgtv7KGG1Wf4VW1j6/cl53vEw50B+MBJmQIQJbblXNb44r/uvZSgWH4AV2gxw9HuyWiTnipnSViBmCppc+EcV3F8bcD1DvA5Yr8QH23zHRXPULQm2/qmT+uAnL6qidTMjxUERUWZBGe7qbwAcGjBotugZiQNm4U8DbgRYW3JlGGY1NYjOfJvqvLa6frc0JujvOL9lYywvxEV2JSdsmfccxn8Mu7vprZfHTtAJBWr2WCCHj/M/2hK1Gdjbt6f3OsKOAavuzfkBCuN9/qSqQBzsnMuiLBP6sdxpqOlt8ImYThdaqDVhxgjBC4WRJmkMUt4j1UERbUc7Gvajo+VfhIkfGdaeAZDCcv9KnIwICQ6i8MUs3rrs14YAB3gtU1ivDbVeKaJ3SubOkS9Pk2lLgqu6JQe69J7OfsmepzWMpWqx56qiwFBY/y1g08QW3hNT0TtFvczEGRs9CnuWsc3YS7D3yKPK+hiQYQo7EcoxI7tSnA4xaSPisfY0vvIi6YpFcup0sQcl2dGw7spI+gZLHlkVxFthcxdr3v40eUlycEAl1aH+ryeQiw50AkVrSQ=
on_success: change
on_failure: always
env:
global:
- secure: vy4moGLO3CjFw/eOoeMmG6DDA6dN/UeeT1Rfm3tVd6Z2U5ueRL+E6w0s4I+jDNJRxCekGeD01IMCS38hGpVGt/+Vs4NZHBUH1zHDIzQCAIf4ONkltjUQeq+CTPyU78E2JqXTXjn37Im48wsuWYSmtj5nq1s3+5ELoETHCWMZuRzBqG3SjnrQgydVVdG/wCUzk9gjgghtr3PuyVkNdg2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SOIi0EJGuAwaqxQjkBd5bFCf2kF0NPoCVOxl4L4tjUrHec+DSSKLBvcfQeS3Mhlswf5LEQkFEH5ckBw=
- secure: go2iGdBeKjfbaxmT8cesl9LywLCGGTJAScJvcghXpdMiY8hn4h9MhACKiqPzGbVrHfvnBnQFkAiahoBxA0LhCw5XmuiWdhFLvuqFjKNBeiIzjwv+0G84iJBce7aS9DBq6r9Ju8Ssceb6Zvx4pEa/YAxrjkjDpJAxExorGCsXP/FY/R4WWUF2jhNq183Gebe2s0VnceFT7nypg6CWc/kH6lfrlL+k0i9ou01UXfRvtpfaLUfrLrlmJKV8f1c0o4UzXjWrBIfafJsSVzrdtQprqonLhc2aV+Uv/Lcl0omJi+vcQA0k9EAV3iKs4u/IEwr90eG34VbM9h/UVD/qaSlMBTqr3cvQ05gzFerItfcg23/FQyobpEwkgAIuUrIgD8xEceRVIj+9+Qxd2FYEMSEGYC54plIoa5DD/l0SRD6KzCCYylWSNlNs7Lv8S3vNNNciKv4XqdG70wB2OaWF53dt/rf1IoS5ILMuVvhEaLkARsfjWenSuX4DGODTLWysf3JVrOwgmlQFnubl4ulflb/4hZ8OYSaIhy5ofxNH5YsVu+X8/HtcUqSMgf52k3z1UladOa0/hnvjSRbn9hhHb+5qThxNam9KLKcR8vEFZGyoiHRS4cRPc3rrsK5WBpUa4PaMwjt+/Vmz+eZovjJoi07RKazPj3+4BuOdAIaqKlXrjcg=
- 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