diff --git a/.travis.yaml b/.travis.yaml index 915efaaf..ba00169e 100644 --- a/.travis.yaml +++ b/.travis.yaml @@ -1,22 +1,24 @@ + language: node_js + node_js: - lts/* + notifications: email: false + before_install: - npm install --global nyc mocha typescript + install: - npm run update-versions + script: -- npm run test:travis +- npm run build +- npm run test - npm run tslint -after_success: -- echo TRAVIS_EVENT_TYPE = $TRAVIS_EVENT_TYPE -- test $TRAVIS_EVENT_TYPE = "cron" - && echo Begin deploy -# && npm publish BotServer --registry= - && echo End deploy - -env: - global: - - Version=4.2.0-preview.${TRAVIS_BUILD_NUMBER} \ No newline at end of file + +branches: + only: + - master + diff --git a/package.json b/package.json index 6a7c921c..48107999 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "start": "node ./dist/src/app.js", "startIde": "npm-run-all clean --parallel watch:build watch:server --print-label", "watch:build": "tsc --watch", + "build": "tsc", "watch:server": "nodemon './dist/index.js' --watch './dist'", "build-docs": "typedoc --options typedoc.json src/", "tslint": "tslint ./packages/*/src/**/*.ts -t verbose",