forked from microsoft/sqltoolsservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 858 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
sudo: required
dist: trusty
os:
- linux
# TODO https://github.com/Microsoft/vscode-mssql/issues/1004 reenable OSX once travis issue is fixed
# - osx
mono: none
dotnet: 2.1.300
# safelist
branches:
only:
- master
- dev
language: csharp
solution: sqltoolsservice.sln
env:
# Since we are building from root, current directory is the project path
- ProjectPath=$TRAVIS_BUILD_DIR
- HOMEBREW_NO_AUTO_UPDATE=1
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo apt-get update;
sudo apt-get install dotnet-sdk-2.1;
else
brew update;
fi
install:
- dotnet restore
script:
- dotnet build src/Microsoft.SqlTools.ServiceLayer
- dotnet test test/Microsoft.SqlTools.ServiceLayer.UnitTests
- dotnet build src/Microsoft.SqlTools.CoreServices
- dotnet test test/Microsoft.SqlTools.Hosting.UnitTests