forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 1.03 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
language: csharp
dist: trusty
sudo: false
mono: none
dotnet: 2.0.0-preview2-006497
services:
- postgresql
addons:
postgresql: "9.6"
env:
- NPGSQL_TEST_DB: '"Host=localhost;Database=npgsql_tests;Username=npgsql_tests;Password=npgsql_tests"'
before_script:
- psql -U postgres -c "CREATE USER npgsql_tests PASSWORD 'npgsql_tests' SUPERUSER"
- psql -U postgres -c "CREATE DATABASE npgsql_tests OWNER npgsql_tests"
- psql -U postgres -c "CREATE EXTENSION postgis" npgsql_tests
- dotnet restore -v Minimal
script:
- dotnet build "test/Npgsql.Tests" -c Debug -f netcoreapp2.0
- dotnet build "test/Npgsql.PluginTests" -c Debug -f netcoreapp2.0
- dotnet test "test/Npgsql.Tests/Npgsql.Tests.csproj" -c Debug -f netcoreapp2.0
- dotnet test "test/Npgsql.PluginTests/Npgsql.PluginTests.csproj" -c Debug -f netcoreapp2.0
cache:
directories:
- $HOME/.nuget/packages
# The following is necessary because of https://github.com/travis-ci/travis-ci/issues/6972
addons:
postgresql: 9.6
apt:
packages:
- postgresql-9.6-postgis-2.3