48 строки
1.7 KiB
YAML
48 строки
1.7 KiB
YAML
sudo: false
|
|
language: node_js
|
|
node_js:
|
|
- node
|
|
services:
|
|
- docker
|
|
os:
|
|
- osx
|
|
- linux
|
|
before_install:
|
|
- |
|
|
if [ $TRAVIS_OS_NAME == "linux" ]; then
|
|
export DISPLAY=':99.0'
|
|
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
|
fi
|
|
install:
|
|
- npm install
|
|
- npm install -g vsce
|
|
script:
|
|
- npm run tslint
|
|
- npm run compile
|
|
- node scripts/genAiKey.js
|
|
- echo "y" | vsce package
|
|
- npm test --silent
|
|
- |
|
|
if [ $TRAVIS_OS_NAME == "linux" ]; then
|
|
docker run -ti --rm -v $PWD:/mnt:ro dkhamsing/awesome_bot --allow-dupe --allow-redirect --skip-save-results `ls *.md`
|
|
fi
|
|
deploy:
|
|
- provider: releases
|
|
skip_cleanup: true
|
|
api_key: "$GIT_TOKEN"
|
|
file_glob: true
|
|
file: "*.vsix"
|
|
on:
|
|
tags: true
|
|
condition: "$TRAVIS_OS_NAME == linux"
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: vsce publish -p $VSCE_TOKEN --packagePath *.vsix
|
|
on:
|
|
tags: true
|
|
condition: "$TRAVIS_OS_NAME == linux && $TRAVIS_TAG =~ $ISPRODTAG"
|
|
env:
|
|
global:
|
|
- ISPRODTAG=^v?[0-9]+\.[0-9]+\.[0-9]+$
|
|
- secure: iEJpIwbO0HFHquXwttrtubXVRHHo+58SG/6OIdSC71JzzauCfWYuPM3FeRjUGpIyfeaXq5seLGJkW9v3g746lLcnEhxVOqojvceynDjaGzePJVuYh6Syt9kpjQ2AfNC4IzXqeeBloNDakv8NXfLqkhTXLD6kTgoaQAejI/98tyGdQ6API44XYyTCf+7Bp+ST8ZfO+GEdBJ5QAEjCjjQ5BCAnyYqKw66QrcajIOa5kulbkU/iGh6EFjx4fBdZ23oAK3dDqgE/0cRgN8xjGL6LEGDP9oSlQ59VJdNiZ/ylWgsSr/P4D5nx/nRFDOLyQmPFWB/dVoaXo2NTogQ7Nu3Te0935uwYh9gNi834X705Xb2QkuWlyL0QWU4ghPPm5LhNVh0HlWlW4kJeAu1yU+DhebXIeKti6+XQ9Y/hCXGWgFcVbO1K3HPVqyJNzzsqbuN8hRYau4hhSoDGvY/wRrS9Z24K2JvTAuKlcd1N8e6P0Az0FyYZZlZagguLZ02W6qcCwnhrLrJU77mmBBe1vytP25o8H6fdOSzWzr6jvyn8jjAxq5sE+s4NQ18SzcMtBxtS+caSE3hsTrKHXy5HNnW1GNFsH4mTYj/OFhBGyl9g/RaTdi+7C7GImvMOx6eaB8KFCs3bo0LyEIIBpL8l7f0ycX4sy4nKkG5YK1MN9LkX/Ho=
|