mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Coveralls + AppVeyor + Travis CI (#171)
* added build files * changed build script * revert dotnet version to older one * added osx building * added appveyor build * added ruby upload code coverage * added gulp cli to downloads * added gulp util to deps * added through2 to deps * added cask install for dotnet * added coveralls gem install to appveyor * fixed ruby script * change upload to be gulp * updated call * added test for nin * testing * testing * testing * added coveralls nuget * echoed path * added code coverage badge * updated cmd * fixed syntax error * added dotnet to path * added manual call to dotnet * iterate * change directory * commit * added start to dotnet core version * changed appveyor * updated dotnet versions * updated readme * removed unnec de * customize for microsoft * specified encrypted key in appveyor * updated readme; added newlines * added branches to ymls * updated ymls
This commit is contained in:
38
.travis.yml
Normal file
38
.travis.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
# safelist
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
|
||||
language: csharp
|
||||
solution: sqltoolsservice.sln
|
||||
|
||||
before_install:
|
||||
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
||||
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list';
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893;
|
||||
sudo apt-get update;
|
||||
sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177;
|
||||
else
|
||||
brew update;
|
||||
brew install openssl;
|
||||
mkdir -p /usr/local/lib;
|
||||
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/;
|
||||
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/;
|
||||
brew cask install dotnet;
|
||||
export PATH="/usr/local/share/dotnet/:$PATH";
|
||||
fi
|
||||
install:
|
||||
- dotnet restore
|
||||
|
||||
script:
|
||||
- dotnet build src/Microsoft.SqlTools.ServiceLayer
|
||||
- dotnet test test/Microsoft.SqlTools.ServiceLayer.Test
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
[](https://travis-ci.org/Microsoft/sqltoolsservice)
|
||||
[](https://ci.appveyor.com/project/{INSERTUSERHERE}/sqltoolsservice)
|
||||
[](https://coveralls.io/github/Microsoft/sqltoolsservice?branch=dev)
|
||||
|
||||
# Microsoft SQL Tools Service
|
||||
The SQL Tools Service is an application that provides core functionality for various SQL Server tools. These features include the following:
|
||||
* Connection management
|
||||
|
||||
27
appveyor.yml
Normal file
27
appveyor.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
environment:
|
||||
COVERALLS_REPO_TOKEN:
|
||||
secure: Insert encrypted coveralls token here
|
||||
|
||||
# safelist
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
|
||||
before_build:
|
||||
- appveyor-retry dotnet restore -v Minimal
|
||||
|
||||
build_script:
|
||||
- dotnet build src/Microsoft.SqlTools.ServiceLayer
|
||||
|
||||
test_script:
|
||||
- dotnet test test/Microsoft.SqlTools.ServiceLayer.Test
|
||||
|
||||
after_test:
|
||||
- cd test/CodeCoverage
|
||||
- npm install -g gulp-cli
|
||||
- runintegration.bat
|
||||
- cmd: packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml
|
||||
|
||||
cache:
|
||||
- '%USERPROFILE%\.nuget\packages'
|
||||
@@ -3,7 +3,8 @@
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="Nuget" value="https://www.nuget.org/api/v2" />
|
||||
<add key="Myget" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
|
||||
<add key="Myget" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
|
||||
<add key="dotnet-cli" value="http://myget.org/F/dotnet-cli/api/v3/index.json" />
|
||||
<add key="DataTools Nuget" value="./bin/nuget" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
"description": "SQL Tools Service Layer",
|
||||
"main": "gulpfile.js",
|
||||
"dependencies": {
|
||||
"gulp": "github:gulpjs/gulp#4.0",
|
||||
"del": "^2.2.1",
|
||||
"gulp": "github:gulpjs/gulp#4.0",
|
||||
"gulp-hub": "frankwallis/gulp-hub#registry-init",
|
||||
"gulp-install": "^0.6.0",
|
||||
"request": "^2.73.0"
|
||||
"gulp-util": "^3.0.7",
|
||||
"request": "^2.73.0",
|
||||
"through2": "^2.0.3"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"author": "Microsoft",
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
<package id="OpenCover" version="4.6.519" />
|
||||
<package id="OpenCoverToCoberturaConverter " version="0.2.4" />
|
||||
<package id="ReportGenerator" version="2.4.5" />
|
||||
<package id="coveralls.io" version="1.3.4" />
|
||||
</packages>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"type": "platform",
|
||||
"version": "1.0.0"
|
||||
"version": "1.*"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
|
||||
Reference in New Issue
Block a user