Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Mimetis committed Jan 2, 2023
1 parent 921ab55 commit 04ca1b9
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions pipelines/azure-pipelines-postgres.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,4 @@
jobs:
- job: testssqlservertcp7
displayName: "Sql TCP .Net 7"

pool:
# get an Ubuntu image to be able to get the light SQL container
vmImage: "ubuntu-latest" # "Ubuntu 16.04" # "ubuntu-latest" # 'VS2017-Win2016'

variables:
solution: "**/*.sln"
buildPlatform: "Any CPU"
buildConfiguration: "Release"

steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk'
inputs:
version: 3.x

- task: UseDotNet@2
displayName: 'Use .Net Sdk 6.x'
inputs:
packageType: 'sdk'
version: 6.0.x
includePreviewVersions: true

- task: UseDotNet@2
displayName: 'Use .Net Sdk 7.x'
inputs:
packageType: 'sdk'
version: 7.0.x
includePreviewVersions: true

- script: docker run --name sqlserver -e ACCEPT_EULA=Y -e SA_PASSWORD=Password12! -p 1433:1433 -d mcr.microsoft.com/mssql/server
displayName: "Run SQL Server latest on Linux container"

# Seems the 3306 is already in use on the machine used by Azure Devops, so redirect to 3307
- script: docker run --name mysql -e MYSQL_ROOT_PASSWORD=Password12! -p 3307:3306 -d mysql
displayName: "Run MySql on Linux container"

- script: docker run --name mariadb -e MYSQL_ROOT_PASSWORD=Password12! -p 3308:3306 -d mariadb:latest
displayName: "Run MariaDB on Linux container"

- script: dotnet test Tests/Dotmim.Sync.Tests/Dotmim.Sync.Tests.csproj --filter Dotmim.Sync.Tests.IntegrationTests.SqlServerTcp -f net7.0 --logger trx
name: sqlservertcptests
displayName: "SQL Server Tcp Integration Tests"
continueOnError: true
env:
"AZUREDEV": "true"

- task: PublishTestResults@2
inputs:
testRunner: VSTest
testResultsFiles: "**/*.trx"

- job: testpostgrestcp31
displayName: "PostgreSQL .Net Core 3.1"

Expand Down

0 comments on commit 04ca1b9

Please sign in to comment.