Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Mar 5, 2019
1 parent c82a1bd commit 3c56f8c
Showing 1 changed file with 13 additions and 44 deletions.
57 changes: 13 additions & 44 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
displayName: dotnet pack build.proj

0 comments on commit 3c56f8c

Please sign in to comment.