File tree Expand file tree Collapse file tree 3 files changed +24
-17
lines changed
Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1717 ],
1818 "linebreak-style": [
1919 "error",
20- "windows "
20+ "unix "
2121 ],
2222 "indent": [
2323 "error",
Original file line number Diff line number Diff line change 1+ * text =auto
Original file line number Diff line number Diff line change 11-
22 version : ' 1.0.{build}'
3- image : Visual Studio 2017
3+ image : ubuntu
44 environment :
5- nodejs_version : " 8 "
5+ nodejs_version : " 10 "
66 branches :
77 only :
88 - development
99 init :
10- - cmd : git config --global core.autocrlf true
10+ - sh : git config --global core.autocrlf input
11+ - sh : git config --global core.eol lf
12+ cache :
13+ - ' ~/.npm'
1114 install :
1215 # Get the latest stable version of Node.js or io.js
13- - ps : Install-Product node $env: nodejs_version
16+ - sh : nvm install $ nodejs_version
1417 # install modules
15- - yarn
18+ - npm ci
1619 test_script :
1720 # Output useful info for debugging.
1821 - node --version
19- - yarn version
22+ - npm -v
2023 # run tests
21- - yarn test:ci
24+ - npm run test:ci
2225 build_script :
23- - yarn build:staging
26+ - npm run build:staging
2427 artifacts :
2528 - path : build\
2629 name : app
3538 - ps : ./send.ps1 failure $env:WEBHOOK_URL
3639-
3740 version : ' 1.0.{build}'
38- image : Visual Studio 2017
41+ image : ubuntu
3942 environment :
40- nodejs_version : " 8 "
43+ nodejs_version : " 10 "
4144 branches :
4245 only :
4346 - production
4447 init :
45- - cmd : git config --global core.autocrlf true
48+ - sh : git config --global core.autocrlf input
49+ - sh : git config --global core.eol lf
50+ cache :
51+ - ' ~/.npm'
4652 install :
4753 # Get the latest stable version of Node.js or io.js
48- - ps : Install-Product node $env: nodejs_version
54+ - sh : nvm install $ nodejs_version
4955 # install modules
50- - yarn
56+ - npm ci
5157 test_script :
5258 # Output useful info for debugging.
5359 - node --version
54- - yarn version
60+ - npm -v
5561 # run tests
56- - yarn test:ci
62+ - npm run test:ci
5763 build_script :
58- - yarn build
64+ - npm run build
5965 artifacts :
6066 - path : build\
6167 name : app
You can’t perform that action at this time.
0 commit comments