language: node_js node_js: - 'stable' cache: yarn: true directories: - node_modules - website/node_modules branches: only: - master - next install: - yarn global add codecov - yarn script: - yarn run lint - yarn run test:ci && codecov after_success: - | if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git config --global user.name "Igor Rosliakov" echo -e "machine github.com\n login sozdayka\n password $GITHUB_TOKEN" >> ~/.netrc cd website && yarn && GIT_USER=sozdayka yarn run publish-gh-pages fi