ApplicationInsights-JS/.travis.yml

47 строки
1.6 KiB
YAML

language: node_js
node_js:
- "10.9"
before_install:
- npm i -g npm@4.5.0
- npm i -g grunt-cli
jobs:
include:
- stage: "Prod build and test"
name: "Prod build and test"
script:
- cd legacy/
- npm install
- grunt
- grunt test
- stage: "build and test"
name: "build and test"
script:
- set -e
- set NO_UPDATE_NOTIFIER=1
# - echo 'Checking for missing change logs...' && echo -en 'travis_fold:start:change\\r'
# - git fetch origin master:refs/remotes/origin/master -a
# - node common/scripts/install-run-rush.js change -v
# - echo -en 'travis_fold:end:change\\r'
- echo 'Checking for inconsistent dependency versions' && echo -en 'travis_fold:start:check\\r'
- node common/scripts/install-run-rush.js check
- echo -en 'travis_fold:end:check\\r'
- echo 'Installing...' && echo -en 'travis_fold:start:install\\r'
- rm -rf common/temp/npm-local
- node common/scripts/install-run-rush.js install
- echo -en 'travis_fold:end:install\\r'
- echo 'Building...' && echo -en 'travis_fold:start:build\\r'
- node common/scripts/install-run-rush.js rebuild --verbose
- echo -en 'travis_fold:end:build\\r'
- echo 'Running test...' && echo -en 'travis_fold:start:tests\\r'
- node common/scripts/install-run-rush.js test --verbose
- echo -en 'travis_fold:end:tests\\r'
- echo 'Running tslint...' && echo -en 'travis_fold:start:lint\\r'
- node common/scripts/install-run-rush.js lint --verbose
- echo -en 'travis_fold:end:lint\\r'