Skip to content

Commit

Permalink
Add working directory
Browse files Browse the repository at this point in the history
slide committed Jul 19, 2018
1 parent 5247a36 commit c2f1da2
Showing 2 changed files with 14 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,13 @@ phases:
parameters:
buildOs: 'Windows'

- phase: macOS
queue: Hosted macOS Preview
steps:
- template: Build/steps.yml
parameters:
buildOs: 'macOS'

- phase: Linux
queue: Hosted Linux Preview
steps:
@@ -19,7 +26,7 @@ phases:
displayName: Install Mono
inputs:
type: InlineScript
script: |
script: |
echo "Installing Mono"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
@@ -28,9 +35,3 @@ phases:
sudo apt update
sudo apt-get -yq install mono-devel
- phase: macOS
queue: Hosted macOS Preview
steps:
- template: Build/steps.yml
parameters:
buildOs: 'macOS'
9 changes: 6 additions & 3 deletions Build/steps.yml
Original file line number Diff line number Diff line change
@@ -26,9 +26,11 @@ steps:
- ${{ parameters.preBuildSteps }}

- powershell: . make.ps1
workingDirectory: $(Build.SourcesDirectory)
displayName: Build

- powershell: . make.ps1 'test-all'
- powershell: . make.ps1 test-all
workingDirectory: $(Build.SourcesDirectory)
displayName: Test

- task: PublishTestResults@2
@@ -40,6 +42,7 @@ steps:
testRunTitle: ${{ parameters.buildOs }}

- powershell: . make.ps1 package
workingDirectory: $(Build.SourcesDirectory)
displayName: Package

- task: CopyFiles@2
@@ -55,12 +58,12 @@ steps:
- task: CopyFiles@2
displayName: Copy Build Logs
inputs:
Contents: '*.binlog'
contents: '*.binlog'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
condition: and(succeededOrFailed(), eq(variables['system.pullrequest.isfork'], false))

- task: PublishBuildArtifacts@1
displayName: Publish Artifacts
inputs:
ArtifactName: '${{ parameters.buildOs }} Artifacts'
ArtifactName: format('{0} Artifacts', parameters.buildOs)
condition: and(succeededOrFailed(), eq(variables['system.pullrequest.isfork'], false))

0 comments on commit c2f1da2

Please sign in to comment.