1
0
Fork 0

another test run

This commit is contained in:
Christian Kühnel 2019-12-11 17:05:58 +00:00
parent 78d6dd6d2a
commit 43299bb04b
2 changed files with 11 additions and 3 deletions

View file

@ -25,8 +25,16 @@ pipeline {
stages {
stage("git checkout"){
steps {
git url: 'https://github.com/llvm/llvm-project.git'
powershell 'git clean -fdx'
// test to see if this is faster then Jenkins own git command...
powershell """
if (Test-Path .git -PathType Container) {
git clean -fdx
git pull
#TODO: in case of errors: delete the folder and `git clone`
} else {
git clone --depth=1 https://github.com/llvm/llvm-project
}
"""
powershell 'New-Item -ItemType Directory -Force -Path llvm-premerge-checks'
powershell 'New-Item -ItemType Directory -Force -Path ${TARGET_DIR}'
dir("llvm-premerge-checks")

View file

@ -21,7 +21,7 @@ Push-Location build
Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
Invoke-Call -ScriptBlock {
cmake.exe ..\llvm -G Ninja -DCMAKE_BUILD_TYPE=Release -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -D LLVM_ENABLE_ASSERTIONS=ON -DLLVM_LIT_ARGS="-v --xunit-xml-output test-results.xml" -D LLVM_ENABLE_DIA_SDK=OFF
cmake.exe ..\llvm -G Ninja -DCMAKE_BUILD_TYPE=Release -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -D LLVM_ENABLE_ASSERTIONS=ON -DLLVM_LIT_ARGS="-v --xunit-xml-output test-results.xml" -D LLVM_ENABLE_DIA_SDK=OFF --trace
} -ErrorAction Stop
# LLVM_ENABLE_DIA_SDK=OFF is a workaround to make the tests pass.