EndemolShineGroup/generator-nodejs-ts

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js

cache: yarn

node_js:
  - 10
  - 12

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: "j/o39OROYDcvHRA50DbfJ5Q/HCnw2j5c2jnsxS9nCRxjq6F2vlqcmL34QyYZO83OAOTcBn3rcNx8VuQ0F0yK9QDwWnoPemUPhhhpKm09IQboSR+SEazbN0P7S4+tGzhNLqx3rgrKUzcNSI4M7ExJaydTZZSmymL/Yj3uvBvBByzsInju3/QwCoXY1aLniVv3wFFLo/FP9WyweS2YOxdBI18Onniwcs2ZBxjvPg93xTWCTfwMa/jrmOEB3mZFiAw8Pb5XQ/oDd/WFy3N/NEceRG08dVePB5DDc2okS6FNTy4SESfVgW/HimwH9idRkt1/489sFWZsBsTYwaAjcD+N4BgOW1PT+4EGfmaOjBWBxxBrrSKfFuC88mTv5xFJDJrShAQAapwwi0v70FSQvC9hyu/tOu5umflN9AbTvxv8tWj2pfAswNO4CecHgEWHmQQMIGIKistlNi4UIwVeHE286dY6obYDEpm8lqnHBLyCC7D7iSV9s5SCaU0sIVqs03AhUFYOgogg/xS/G4i1Cs3t5kWOxsxGUi/gt3LypG9FcJDYupWeOCDwWWjz5GTtM7z8y1NRvC3uUCA/moF0CIFfRhyWC73mRVZDuA9AJwUUYeRLm2hAfDbP2vE1DKt2tK/fptz6OLkISYSRkSIFx8yjPjvf2A0ywNoaBxKFuHIZt6c="
    on_success: change
    on_failure: always

env:
  global:
    - secure: "KkIM+AjivhyIU4teDYl/TOdZEafKiQFwtORcKYQt1puRW5k6dOYlgPN7pZkeH5swrzI0UJwDBWonA/eAgKkik0VrRxiDc3obNNowZ9DUqA5TGeX49VSfJOSNFSY05eq5SzuEFw4XPEIbCLe4h1jPNJrHH9eGKPrV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5sb9sIternvQpRa/5VsTlcQf8887mQLbLQhu/yUgoxrDWZfJBo1tCGoVFDSVHF+yzhaNzqRJD3UB7oarslZGnHEliNGpQOt3stEaxHC4QHZsIztcLnEuDSSQrPhR9vl6bBDY=
    - secure: "BpKl3NC8nB33wPsBu8V9OaBv2VZG9OOpcusfUkFM79Fi3UY+d01sxA0x/RCMDfmP1OCyULwMInghAqh8epSJiGgldpjjmBtLi6BP+i36TQ9m6kmiuwuFOuejFZNm7AS3kqfr5JLoFviEvx5ofYtq9dP0vUfe0cFXRlxaZSrPGApWr+8E+5McPjjaQIcP5lRTRBpDB+ihBYeBs3t5yqcv2adyXZymxDZKWuWR7HVUqjBESCjqekQBzIkE2sVMQcU9xc50vY4vN3v4k/WpfCoH0DKD1QvylA/PXOBszyVHOwvo//1TCWZdN07fOJcm+UiBbsNuZ7ysZinf+atoAZCgdnXpa50P4055ZVUZtPLe8LnCvsqjRlrYeZqvkEfAFtuMjBCgkuCnmiivm+o7D4L81IGUce21F++I5eQcA4W4ak5wP0jkrWZuwJXZ/n2Jn+mBrENov/AhW/sZV+hWfRPeMMxypvX24DSXBOEcLe+7Vsso9r6E0LdIAG+y4QeE+DZ5oWryzgasQBpolpxl1PYrE44qF6/BHQcwT4UxRqW+lBVd1cmOjyGR8qiipYUDOROJBUjKnTG13TzfsxpwY86poWHJnSqudyuTHL83udUNFOFJu/SSBZ5Wb1s7pF1DTmA+pX8RWGe+dCEVHkux6NjAsweg9jPTC+QfqkQSDG7drpw="
    - GIT_AUTHOR_NAME="esg-bot"
    - GIT_AUTHOR_EMAIL="tech@endemolshine.com"
    - GIT_COMMITTER_NAME="esg-bot"
    - 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