forked from AdysTech/InfluxDB.Client.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (33 loc) · 1.42 KB
/
.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
language: csharp
sudo: required
dist: trusty
mono: none
dotnet: 1.1.5 #2.1.200 # Latest 2.0 Runtime
branches:
only:
- master
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main'
key_url: 'https://apt-mo.trafficmanager.net/keys/microsoft.asc'
packages:
- dotnet-dev-1.0.1
install:
# Import the public repository GPG keys
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Ubuntu repository
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
# Update the list of products
- sudo apt-get update
# Install PowerShell
- sudo apt-get install -y powershell
- bash <(curl -fsSL https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh)
- pwsh -noprofile -c '$PSVersionTable'
- sudo pwsh ./tests/InfluxDB.Client.Net.TestSetup.ps1
before_script:
- dotnet restore "./src/AdysTech.InfluxDB.Client.Net.Core/AdysTech.InfluxDB.Client.Net.Core.csproj"
- dotnet restore "./tests/AdysTech.InfluxDB.Client.Net.Core.Test/AdysTech.InfluxDB.Client.Net.Core.Test.csproj"
script:
- dotnet build "./src/AdysTech.InfluxDB.Client.Net.Core/AdysTech.InfluxDB.Client.Net.Core.csproj"
- dotnet test "./tests/AdysTech.InfluxDB.Client.Net.Core.Test/AdysTech.InfluxDB.Client.Net.Core.Test.csproj"