diff --git a/.travis.yml b/.travis.yml index baaaeb8a7a7..5bae7eabd29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,7 @@ language: node_js node_js: - 0.10 -script: -- npm run lint -- npm run test -after_success: ./scripts/merge.sh +script: ./scripts/build.sh before_deploy: ./scripts/release.sh deploy: provider: npm diff --git a/scripts/merge.sh b/scripts/build.sh similarity index 98% rename from scripts/merge.sh rename to scripts/build.sh index c6601256b4b..714a1fa0e02 100755 --- a/scripts/merge.sh +++ b/scripts/build.sh @@ -16,6 +16,9 @@ set -ev +npm run lint +npm run test + # if merging to master and not a pull request, execute regression tests and update docs if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then openssl aes-256-cbc -K $encrypted_b8aa0887832a_key -iv $encrypted_b8aa0887832a_iv -in key.json.enc -out key.json -d