Changeset cde3891 for Jenkinsfile
- Timestamp:
- Jan 23, 2019, 4:52:16 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- a200795
- Parents:
- 9b086ca (diff), 1d832f4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
Jenkinsfile (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r9b086ca rcde3891 4 4 // Main loop of the compilation 5 5 //=========================================================================================================== 6 node ('master'){ 7 6 7 node('master') { 8 8 // Globals 9 BuildDir = pwd tmp: true10 SrcDir = pwd tmp: false9 BuildDir = null 10 SrcDir = null 11 11 Settings = null 12 12 StageName = '' … … 26 26 Settings = prepare_build() 27 27 28 clean() 29 30 checkout() 31 32 notify_server(0) 33 34 build() 35 36 test() 37 38 benchmark() 39 40 build_doc() 41 42 publish() 28 node(Settings.Architecture.node) { 29 BuildDir = pwd tmp: true 30 SrcDir = pwd tmp: false 31 32 clean() 33 34 checkout() 35 36 notify_server(0) 37 38 build() 39 40 test() 41 42 benchmark() 43 44 build_doc() 45 46 publish() 47 } 43 48 44 49 notify_server(45) … … 75 80 } 76 81 } 77 78 82 //=========================================================================================================== 79 83 // Main compilation routines … … 114 118 } 115 119 116 sh "${SrcDir}/configure CXX=${Settings.Compiler. cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet"120 sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet" 117 121 118 122 //Compile the project … … 128 132 //Run the tests from the tests directory 129 133 if ( Settings.RunAllTests ) { 130 sh 'make --no-print-directory -C tests all-tests debug=yes'131 sh 'make --no-print-directory -C tests all-tests debug=no '134 sh 'make --no-print-directory -C tests timeouts="--timeout=600" all-tests debug=yes' 135 sh 'make --no-print-directory -C tests timeouts="--timeout=600" all-tests debug=no ' 132 136 } 133 137 else { … … 235 239 //Description of a compiler (Must be serializable since pipelines are persistent) 236 240 class CC_Desc implements Serializable { 237 public String cc_name238 public String cpp_cc239 public String cfa_cc240 241 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) {242 this. cc_name = cc_name243 this. cpp_cc = cpp_cc244 this. cfa_cc = cfa_cc241 public String name 242 public String CXX 243 public String CC 244 245 CC_Desc(String name, String CXX, String CC) { 246 this.name = name 247 this.CXX = CXX 248 this.CC = CC 245 249 } 246 250 } … … 250 254 public String name 251 255 public String flags 252 253 Arch_Desc(String name, String flags) { 256 public String node 257 258 Arch_Desc(String name, String flags, String node) { 254 259 this.name = name 255 260 this.flags = flags 261 this.node = node 256 262 } 257 263 } … … 292 298 switch( param.Architecture ) { 293 299 case 'x64': 294 this.Architecture = new Arch_Desc('x64', '--host=x86_64' )300 this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'master') 295 301 break 296 302 case 'x86': 297 this.Architecture = new Arch_Desc('x86', '--host=i386' )303 this.Architecture = new Arch_Desc('x86', '--host=i386', 'master') 298 304 break 299 305 default : … … 309 315 310 316 def full = param.RunAllTests ? " (Full)" : "" 311 this.DescShort = "${ this.Compiler. cc_name }:${ this.Architecture.name }${full}"312 313 this.DescLong = """Compiler : ${ this.Compiler. cc_name } (${ this.Compiler.cpp_cc }/${ this.Compiler.cfa_cc})317 this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}" 318 319 this.DescLong = """Compiler : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC }) 314 320 Architecture : ${ this.Architecture.name } 315 321 Arc Flags : ${ this.Architecture.flags }
Note:
See TracChangeset
for help on using the changeset viewer.