forked from grandchamp/Identity.Dapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 1.11 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
sudo: required
language: csharp
dist: trusty
mono: none
dotnet: 2.0.0
services:
- docker
before_install:
- sudo service mysql stop
- sudo service postgresql stop
- docker ps -a
- docker build -t mysql_identity -f test/Identity.Dapper.Tests.Integration/MySQL/Dockerfile .
- docker build -t psql_integration -f test/Identity.Dapper.Tests.Integration/PostgreSQL/Dockerfile .
- docker build -t sqlserver_integration -f test/Identity.Dapper.Tests.Integration/SQLServer/Dockerfile .
- docker run -it -p 1433:1433 -d sqlserver_integration
- docker-compose -f test/Identity.Dapper.Tests.Integration/MySQL/docker-compose.yml up -d
- docker run -it -p 5432:5432 -d psql_integration
- sleep 120
- docker logs $(docker ps -a | grep mysql | awk '{ print $1 }')
- docker logs $(docker ps -a | grep psql | awk '{ print $1 }')
- docker logs $(docker ps -a | grep sqlserver | awk '{ print $1 }')
install:
- dotnet restore
script:
- dotnet build
- dotnet test test/Identity.Dapper.Tests/Identity.Dapper.Tests.csproj
- dotnet test test/Identity.Dapper.Tests.Integration/Identity.Dapper.Tests.Integration.csproj