Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Remove unrequired tab
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
  • Loading branch information
tomkerkhove committed Apr 14, 2020
1 parent 7403a85 commit 270b459
Showing 1 changed file with 79 additions and 79 deletions.
158 changes: 79 additions & 79 deletions build/ci.yml
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
trigger:
- master
trigger:
- master

pr:
branches:
include:
- master
paths:
include:
- src/*
pr:
branches:
include:
- master
paths:
include:
- src/*

pool:
vmImage: 'ubuntu-latest'
pool:
vmImage: 'ubuntu-latest'

variables:
- name: DotNet.Version
value : 3.1.201
- name: Agent.Auth.AppId
value : 67882a00-21d3-4ee7-b32a-430ea0768cd3
- name: Agent.Auth.AppSecret
value : _M6e4CNu]x2SSN0hUFobamWttPyVXl?-
- name: Image.Name
value : promitor-discovery-agent
- name: Container.Port
value : 8888
- name: Agent.ResourceDiscovery.BaseUrl
value: http://localhost:$(Container.Port)
variables:
- name: DotNet.Version
value : 3.1.201
- name: Agent.Auth.AppId
value : 67882a00-21d3-4ee7-b32a-430ea0768cd3
- name: Agent.Auth.AppSecret
value : _M6e4CNu]x2SSN0hUFobamWttPyVXl?-
- name: Image.Name
value : promitor-discovery-agent
- name: Container.Port
value : 8888
- name: Agent.ResourceDiscovery.BaseUrl
value: http://localhost:$(Container.Port)

steps:
- task: UseDotNet@2
displayName: Install .NET Core SDK $(DotNet.Version)
inputs:
packageType: 'sdk'
version: '$(DotNet.Version)'
- task: DotNetCoreCLI@2
displayName: Build Integration Tests
inputs:
command: 'build'
projects: './src/Promitor.ResourceDiscovery.Tests.Integration/Promitor.ResourceDiscovery.Tests.Integration.csproj'
arguments: '--configuration release'
- task: replacetokens@3
displayName: Replace Tokens in Integration Test Configuration
inputs:
rootDirectory: './src'
targetFiles: '**/appsettings.json'
encoding: 'auto'
writeBOM: true
verbosity: 'detailed'
actionOnMissing: 'fail'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'
- task: Docker@2
displayName: Build promitor-discovery-agent Docker image
inputs:
repository: '$(Image.Name)'
command: 'build'
Dockerfile: './src/Promitor.ResourceDiscovery.Agent/Dockerfile'
buildContext: './src/'
tags: '$(Build.BuildNumber)'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
docker run -d -p $(Container.Port):80 --name $(Image.Name) --env DISCOVERY_APPID='$(Agent.Auth.AppId)' --env DISCOVERY_APPSECRET='$(Agent.Auth.AppSecret)' --volume $(Pipeline.Workspace)/s/tests/discovery-config.yaml:/config/resource-declaration.yaml $(Image.Name):$(Build.BuildNumber)
sleep 10
docker logs promitor-discovery-agent
failOnStderr: true
displayName: Run promitor-discovery-agent Docker image
- task: DotNetCoreCLI@2
displayName: Run Integration Tests
inputs:
command: 'test'
projects: './src/Promitor.ResourceDiscovery.Tests.Integration/Promitor.ResourceDiscovery.Tests.Integration.csproj'
arguments: '--configuration release --no-build'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
docker logs promitor-discovery-agent
failOnStderr: true
displayName: Show promitor-discovery-agent logs
condition: always()
steps:
- task: UseDotNet@2
displayName: Install .NET Core SDK $(DotNet.Version)
inputs:
packageType: 'sdk'
version: '$(DotNet.Version)'
- task: DotNetCoreCLI@2
displayName: Build Integration Tests
inputs:
command: 'build'
projects: './src/Promitor.ResourceDiscovery.Tests.Integration/Promitor.ResourceDiscovery.Tests.Integration.csproj'
arguments: '--configuration release'
- task: replacetokens@3
displayName: Replace Tokens in Integration Test Configuration
inputs:
rootDirectory: './src'
targetFiles: '**/appsettings.json'
encoding: 'auto'
writeBOM: true
verbosity: 'detailed'
actionOnMissing: 'fail'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'
- task: Docker@2
displayName: Build promitor-discovery-agent Docker image
inputs:
repository: '$(Image.Name)'
command: 'build'
Dockerfile: './src/Promitor.ResourceDiscovery.Agent/Dockerfile'
buildContext: './src/'
tags: '$(Build.BuildNumber)'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
docker run -d -p $(Container.Port):80 --name $(Image.Name) --env DISCOVERY_APPID='$(Agent.Auth.AppId)' --env DISCOVERY_APPSECRET='$(Agent.Auth.AppSecret)' --volume $(Pipeline.Workspace)/s/tests/discovery-config.yaml:/config/resource-declaration.yaml $(Image.Name):$(Build.BuildNumber)
sleep 10
docker logs promitor-discovery-agent
failOnStderr: true
displayName: Run promitor-discovery-agent Docker image
- task: DotNetCoreCLI@2
displayName: Run Integration Tests
inputs:
command: 'test'
projects: './src/Promitor.ResourceDiscovery.Tests.Integration/Promitor.ResourceDiscovery.Tests.Integration.csproj'
arguments: '--configuration release --no-build'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
docker logs promitor-discovery-agent
failOnStderr: true
displayName: Show promitor-discovery-agent logs
condition: always()

0 comments on commit 270b459

Please sign in to comment.