Changes in Jenkinsfile [9a90092:4f3807d]
- File:
-
- 1 edited
-
Jenkinsfile (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r9a90092 r4f3807d 103 103 } 104 104 105 sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} AR=gcc-ar RANLIB=gcc-ranlib ${targets} --quiet --prefix=${BuildDir}" 105 ast = Settings.NewAST ? "--enable-new-ast" : "--disable-new-ast" 106 107 sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} AR=gcc-ar RANLIB=gcc-ranlib ${targets} ${ast} --quiet --prefix=${BuildDir}" 106 108 107 109 // Configure libcfa … … 150 152 sh 'ulimit -a' 151 153 152 jopt = '-j $(nproc)' 153 154 Tools.BuildStage('Test: Debug', true) { 154 Tools.BuildStage('Test: short', !Settings.RunAllTests) { 155 155 dir (BuildDir) { 156 156 //Run the tests from the tests directory 157 sh " ""make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/full-debug"""157 sh "make --no-print-directory -C tests archiveerrors=${BuildDir}/tests/crashes/short" 158 158 } 159 159 } 160 160 161 Tools.BuildStage('Test: Release', Settings.RunAllTests) {161 Tools.BuildStage('Test: full', Settings.RunAllTests) { 162 162 dir (BuildDir) { 163 //Run the tests from the tests directory 164 sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no archiveerrors=${BuildDir}/tests/crashes/full-nodebug""" 163 jopt = '-j $(nproc)' 164 if( Settings.Architecture.node == 'x86' ) { 165 jopt = '-j2' 166 } 167 //Run the tests from the tests directory 168 sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/full-debug""" 169 sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no archiveerrors=${BuildDir}/tests/crashes/full-nodebug""" 165 170 } 166 171 } … … 276 281 public final CC_Desc Compiler 277 282 public final Arch_Desc Architecture 283 public final Boolean NewAST 278 284 public final Boolean RunAllTests 279 285 public final Boolean RunBenchmark … … 333 339 334 340 this.IsSandbox = (branch == "jenkins-sandbox") 341 this.NewAST = param.NewAST 335 342 this.RunAllTests = param.RunAllTests 336 343 this.RunBenchmark = param.RunBenchmark … … 342 349 this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}" 343 350 351 final ast = this.NewAST ? "New AST" : "Old AST" 344 352 this.DescLong = """Compiler : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC }) 353 AST Version : ${ ast.toString() } 345 354 Architecture : ${ this.Architecture.name } 346 355 Arc Flags : ${ this.Architecture.flags } … … 381 390 ], \ 382 391 [$class: 'BooleanParameterDefinition', \ 383 description: 'If false, the test suite is only ran in debug', \ 392 description: 'If true, build compiler using new AST', \ 393 name: 'NewAST', \ 394 defaultValue: true, \ 395 ], \ 396 [$class: 'BooleanParameterDefinition', \ 397 description: 'If false, only the quick test suite is ran', \ 384 398 name: 'RunAllTests', \ 385 399 defaultValue: false, \
Note:
See TracChangeset
for help on using the changeset viewer.