omnisharp-vscode/.travis.yml

64 строки
1.9 KiB
YAML

language: node_js
node_js:
- "10"
mono:
- latest
env:
- CODE_VERSION=1.33.0
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
Xvfb :99 &
sleep 3;
fi
- dpkg --compare-versions `npm -v` ge 6.7 || npm i -g npm@^6.7
- wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
- sudo dpkg -i packages-microsoft-prod.deb
- sudo apt-get install apt-transport-https
- sudo apt-get update
- sudo apt-get install dotnet-sdk-3.1
- sudo apt install xvfb
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libsecret-1-dev
install:
- npm ci
- npm i -g gulp
- gulp 'vsix:release:package'
script:
- gulp cov:instrument
- gulp test
- gulp cov:report
- npm run test:artifacts
- 'if [[ "$TRAVIS_BRANCH" != "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then npm run test:release; fi'
after_failure:
- ./.travis/printLogs.sh
after_success:
- ./.travis/printLogs.sh
deploy:
provider: releases
api_key:
secure: IccNv4d/b3/c2Wg/A39L/gfNPT0nBMpcf2b5PlEy+U79ii9hKHq681hHCJ/NPhwUjWOfSfgFXRoTJVYIHuMnT7WLnSqfqiiPUo82z0ulZQOEEdt8oVHoABm5SzAPQqe6Lo/SC+2zYV6TgqP/i9qVN0TuyA1jH00hmpBjnozO98GyuJIeUYwvEBkhJttcO0HLb836td5OxG8SDRo9kFauITNZAFQA8yVlsFmCJF1Di7Oncmcjcd5aHm9PnbgQytHg+iWMhBZuHXfB9hV4J0tsMZB+XPxvkS74dASuKjEIIdB66GXoVL5BzJmopY3gQVYpK5wK+HH4PwwpdZ1BY0qW4zmUCwwlNXSIVX8IjCiRt/5Bc3hqpY8zahIFKW37ZbHSVH1kKK9+fmEt5iy4HSqGGxmSXVrQGY1VJhsol/0Yu326L9J35AKhQeYKQvIdUQy4LiIN8NTUtEZr5Nvv6+TCI0RShQgkGQrlVyknIpoq9HM915NDTRLwm3s78LptkOP6wmRk26HLOBdYG/0k15Wos7mtR6cXc+NqKZm8tPfPEn2cIzGrmQgKXuCoXu+hGoOl/2HSzDnUUxhiSVbjoCei7HRXPT+0yhDc8e+Kt1fHKDJpyj7ybICVGmexxQY41mPtAVKrX/pDBCi53QVT1a+QEAd5Y27X4S8Ko+Vqukkoq7E=
file_glob: true
file: "*.vsix"
skip_cleanup: true
on:
repo: OmniSharp/omnisharp-vscode
tags: true
overwrite: true
after_deploy: "find . -type f -name '*.vsix'"