Changes in Jenkinsfile [4f3807d:9a90092]
- File:
-
- 1 edited
-
Jenkinsfile (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r4f3807d r9a90092 103 103 } 104 104 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}" 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}" 108 106 109 107 // Configure libcfa … … 152 150 sh 'ulimit -a' 153 151 154 Tools.BuildStage('Test: short', !Settings.RunAllTests) { 152 jopt = '-j $(nproc)' 153 154 Tools.BuildStage('Test: Debug', true) { 155 155 dir (BuildDir) { 156 156 //Run the tests from the tests directory 157 sh " make --no-print-directory -C tests archiveerrors=${BuildDir}/tests/crashes/short"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""" 158 158 } 159 159 } 160 160 161 Tools.BuildStage('Test: full', Settings.RunAllTests) {161 Tools.BuildStage('Test: Release', Settings.RunAllTests) { 162 162 dir (BuildDir) { 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""" 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""" 170 165 } 171 166 } … … 281 276 public final CC_Desc Compiler 282 277 public final Arch_Desc Architecture 283 public final Boolean NewAST284 278 public final Boolean RunAllTests 285 279 public final Boolean RunBenchmark … … 339 333 340 334 this.IsSandbox = (branch == "jenkins-sandbox") 341 this.NewAST = param.NewAST342 335 this.RunAllTests = param.RunAllTests 343 336 this.RunBenchmark = param.RunBenchmark … … 349 342 this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}" 350 343 351 final ast = this.NewAST ? "New AST" : "Old AST"352 344 this.DescLong = """Compiler : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC }) 353 AST Version : ${ ast.toString() }354 345 Architecture : ${ this.Architecture.name } 355 346 Arc Flags : ${ this.Architecture.flags } … … 390 381 ], \ 391 382 [$class: 'BooleanParameterDefinition', \ 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', \ 383 description: 'If false, the test suite is only ran in debug', \ 398 384 name: 'RunAllTests', \ 399 385 defaultValue: false, \
Note:
See TracChangeset
for help on using the changeset viewer.