2016-09-20 09:57:02 +03:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-12-02 16:07:12 +03:00
|
|
|
webhooks:
|
2017-12-08 08:35:47 +03:00
|
|
|
urls:
|
|
|
|
- https://www.travisbuddy.com/
|
|
|
|
on_success: never
|
|
|
|
on_failure: always
|
|
|
|
on_start: never
|
|
|
|
on_cancel: never
|
|
|
|
on_error: never
|
2016-09-20 09:57:02 +03:00
|
|
|
|
2018-01-27 18:51:17 +03:00
|
|
|
sudo: false
|
2016-09-20 09:57:02 +03:00
|
|
|
|
|
|
|
os:
|
2020-06-21 03:36:01 +03:00
|
|
|
- linux
|
2016-09-20 09:57:02 +03:00
|
|
|
|
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2020-06-21 03:36:01 +03:00
|
|
|
- 12
|
2016-09-20 09:57:02 +03:00
|
|
|
|
2017-11-13 22:43:56 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libsecret-1-dev
|
2016-09-20 09:57:02 +03:00
|
|
|
|
|
|
|
before_install:
|
2020-06-21 03:36:01 +03:00
|
|
|
- |
|
|
|
|
if [ $TRAVIS_OS_NAME == "linux" ]; then
|
|
|
|
export DISPLAY=':99.0'
|
|
|
|
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
|
|
|
fi
|
2018-05-04 02:35:11 +03:00
|
|
|
|
2018-05-09 20:23:28 +03:00
|
|
|
script:
|
2020-06-21 03:36:01 +03:00
|
|
|
- npm run forceprettier
|
|
|
|
- if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then
|
2017-11-13 23:20:10 +03:00
|
|
|
git diff;
|
2018-07-29 12:27:28 +03:00
|
|
|
echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve.";
|
2017-11-13 23:20:10 +03:00
|
|
|
exit 1;
|
2020-06-21 03:36:01 +03:00
|
|
|
fi
|
|
|
|
- gulp build
|
|
|
|
- gulp prepare-test
|
|
|
|
- npm test
|
2016-09-20 09:57:02 +03:00
|
|
|
|
2017-05-10 03:12:56 +03:00
|
|
|
before_deploy:
|
2020-06-21 03:36:01 +03:00
|
|
|
- npm install -g vsce;
|
|
|
|
- vsce package;
|
2016-09-20 09:57:02 +03:00
|
|
|
|
|
|
|
deploy:
|
2020-06-21 03:36:01 +03:00
|
|
|
- provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: PmBcza43E3Y5/OxmR2V3nLJSBW9LildJCHdNQrKC0AndO6b14K+FLq3lwUBNX36q08noRX1V/nrYiDIFbZf8AQNq7j+rsR6mJOTXmu/pThrz0ugBK12f5aVoJOAdPPD2XZ/Cu7nLNvqVbLgZIqACVwWzCukSD0/3JWFv1w3yjGj/t1QNBHJoT7Wy1K6a1d3IISnDC9XROBYWvG/4IZipTAiv8yD0TMncgVaWxjEng5lhtmDE+XhBQU7Z5Ywc9IJMgajos+Ix6j+bju7Evta26+tLvonwC3dK8eeUZbIqdanrGl1zW0yft15y2SYo1YYQE6qLFO1kDsR90iY1YaW94vGyDJ3TLDAEjyZ3RMYv1OFOKOc6fhV3l5piyacCmvc30gP+AKjlukxgckYRY1soDNW5xqjcMSluaOMumNPbXpVsx7Kup+ceYkktQBSoTHtZFxt1uQmo7KY9IcNIsZuRP2hLcxV0eI6HI78THa56vTffxXWBZ2NYkKJ6gBADghQlJaz6D40yX2Qj2XsXH09aaY6oQ2Y/x3TZTLxwbyiHA2DPVY5e06GDRaEeavIyDiM9p4wlgsYuS4vDXGbNkzoBZuijpKw3fG1tf39+rUqlVw2LBN1kroAiNfHjaalTwsWS3F9y1ispCALYUuMl4lIAsgGXYgOZbfPO5sof6Wjvg4Q=
|
|
|
|
file_glob: true
|
|
|
|
file: '*.vsix'
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: VSCodeVim/Vim
|
|
|
|
tags: true
|
|
|
|
condition: $TRAVIS_OS_NAME = linux
|
|
|
|
- provider: script
|
|
|
|
script: vsce publish -p $VS_TOKEN
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: VSCodeVim/Vim
|
|
|
|
branch: master
|
|
|
|
tags: true
|
|
|
|
condition: $TRAVIS_OS_NAME = linux
|