From 3c56f8c9b1af5b8f73b09c4d5b7c64fd9fc3e0b4 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Tue, 5 Mar 2019 21:58:13 +0000 Subject: [PATCH] Fix build script --- azure-pipelines.yml | 57 +++++++++++---------------------------------- 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index edd9b1b..6669705 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,16 +4,6 @@ jobs: pool: vmImage: 'vs2017-win2016' steps: - - script: dotnet test build.proj -v n - displayName: dotnet test build.proj - env: - EQUINOX_INTEGRATION_SKIP_EVENTSTORE: true - EQUINOX_INTEGRATION_SKIP_COSMOS: true - - task: PublishTestResults@2 - inputs: - testResultsFormat: 'VSTest' - testResultsFiles: 'tests/**/*.trx' - condition: succeededOrFailed() - script: dotnet pack build.proj displayName: dotnet pack build.proj env: @@ -23,56 +13,35 @@ jobs: inputs: pathtoPublish: 'bin/nupkg' artifactName: 'nupkgs' - - task: NuGetCommand@2 - inputs: - command: push - nuGetFeedType: external - publishFeedCredentials: 'Jet-MyGet' - versioningScheme: byEnvVar - versionEnvVar: Version - packagesToPush: _none -# packagesToPush: 'bin/nupkg/*.nupkg' - - job: Linux pool: vmImage: 'ubuntu-16.04' steps: - script: echo "##vso[task.setvariable variable=FrameworkPathOverride]$(dirname $(which mono))/../lib/mono/4.5/" displayName: Workaround .NET reference assemblies on linux - - script: dotnet test build.proj -v n - displayName: dotnet test build.proj + - script: | + docker network create kafka-net + docker run -d --name zookeeper --network kafka-net --publish 2181:2181 zookeeper:3.4 + docker run -d --name kafka --network kafka-net --hostname localhost --publish 9092:9092 \ + --env KAFKA_ADVERTISED_HOST_NAME=127.0.0.1 --env ZOOKEEPER_IP=zookeeper \ + --env KAFKA_AUTO_CREATE_TOPICS_ENABLE=true \ + ches/kafka + sleep 15 + displayName: Docker kafka for integration tests + - script: dotnet test build.proj + displayName: Run Integration tests env: - EQUINOX_INTEGRATION_SKIP_EVENTSTORE: true - EQUINOX_INTEGRATION_SKIP_COSMOS: true + TEST_KAFKA_BROKER: localhost:9092 - task: PublishTestResults@2 inputs: testResultsFormat: 'VSTest' testResultsFiles: 'tests/**/*.trx' condition: succeededOrFailed() - - script: dotnet pack build.proj - displayName: dotnet pack - env: - BUILD_PR: $(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER) - BUILD_ID: $(BUILD.BUILDNUMBER) - - job: MacOS pool: vmImage: 'macOS-10.13' steps: - script: echo "##vso[task.setvariable variable=FrameworkPathOverride]$(dirname $(which mono))/../lib/mono/4.5/" displayName: Workaround .NET reference assemblies on linux - - script: dotnet test build.proj -v n - displayName: dotnet test build.proj - env: - EQUINOX_INTEGRATION_SKIP_EVENTSTORE: true - EQUINOX_INTEGRATION_SKIP_COSMOS: true - - task: PublishTestResults@2 - inputs: - testResultsFormat: 'VSTest' - testResultsFiles: 'tests/**/*.trx' - condition: succeededOrFailed() - script: dotnet pack build.proj - displayName: dotnet pack - env: - BUILD_PR: $(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER) - BUILD_ID: $(BUILD.BUILDNUMBER) \ No newline at end of file + displayName: dotnet pack build.proj \ No newline at end of file