Skip to content

Commit

Permalink
Point TMP to the D drive (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbezault authored Apr 14, 2020
1 parent 28024b4 commit 3141965
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions azure-devops/run-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
vcpkgLocation: '$(Build.SourcesDirectory)/vcpkg'
buildOutputLocation: 'D:/build'
steps:
- script: |
if exist "$(tmpDir)" (
rmdir /S /Q $(tmpDir)
)
mkdir $(tmpDir)
displayName: 'Setup TMP Directory'
- checkout: self
clean: true
submodules: true
Expand All @@ -29,13 +35,15 @@ jobs:
vcpkgArguments: 'boost-build'
vcpkgDirectory: '$(vcpkgLocation)'
vcpkgTriplet: 'x86-windows'
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- task: run-vcpkg@0
displayName: 'Run vcpkg'
timeoutInMinutes: 10
inputs:
vcpkgArguments: 'boost-math'
vcpkgDirectory: '$(vcpkgLocation)'
vcpkgTriplet: '${{ parameters.targetPlatform }}-windows'
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- task: PowerShell@2
displayName: 'Get Test Parallelism'
timeoutInMinutes: 2
Expand All @@ -54,6 +62,7 @@ jobs:
useVcpkgToolchainFile: true
cmakeAppendedArgs: |
-G Ninja -DENABLE_XUNIT_OUTPUT=TRUE -DADDITIONAL_LIT_FLAGS=-j$(testParallelism)
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- task: CmdLine@2
displayName: 'Run Tests'
timeoutInMinutes: 120
Expand All @@ -64,6 +73,7 @@ jobs:
call "%PROGRAMFILES(X86)%\Microsoft Visual Studio\2019\Preview\Common7\Tools\VsDevCmd.bat" ^
-host_arch=${{ parameters.vsDevCmdArch }} -arch=${{ parameters.vsDevCmdArch }} -no_logo
ctest -V
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- task: PublishTestResults@2
displayName: 'Publish libcxx Tests'
timeoutInMinutes: 10
Expand Down
10 changes: 10 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

variables:
agentPool: 'StlBuild-2020-04-04-3'
tmpDir: 'D:\Temp'

stages:
- stage: Code_Format
Expand All @@ -17,6 +18,12 @@ stages:
name: $(agentPool)

steps:
- script: |
if exist "$(tmpDir)" (
rmdir /S /Q $(tmpDir)
)
mkdir $(tmpDir)
displayName: 'Setup TMP Directory'
- checkout: self
clean: true
submodules: false
Expand All @@ -28,20 +35,23 @@ stages:
cd $(Build.ArtifactStagingDirectory)\tools
cmake --build .
displayName: 'Build Support Tools'
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- task: BatchScript@1
displayName: 'Enforce clang-format'
timeoutInMinutes: 60
inputs:
filename: 'azure-devops/enforce-clang-format.cmd'
failOnStandardError: true
arguments: '$(Build.ArtifactStagingDirectory)/tools/parallelize/parallelize.exe'
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- task: BatchScript@1
displayName: 'Validate Files'
timeoutInMinutes: 2
inputs:
filename: 'azure-devops/validate-files.cmd'
failOnStandardError: true
arguments: '$(Build.ArtifactStagingDirectory)/tools/validate/validate.exe'
env: { TMP: $(tmpDir), TEMP: $(tmpDir) }
- stage: Build_And_Test
displayName: 'Build and Test'
jobs:
Expand Down

0 comments on commit 3141965

Please sign in to comment.