Changeset cde3891 for Jenkinsfile


Ignore:
Timestamp:
Jan 23, 2019, 4:52:16 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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.
Message:

Merge branch 'master' into cleanup-dtors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r9b086ca rcde3891  
    44// Main loop of the compilation
    55//===========================================================================================================
    6 node ('master'){
    7 
     6
     7node('master') {
    88        // Globals
    9         BuildDir  = pwd tmp: true
    10         SrcDir    = pwd tmp: false
     9        BuildDir  = null
     10        SrcDir    = null
    1111        Settings  = null
    1212        StageName = ''
     
    2626                        Settings = prepare_build()
    2727
    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                        }
    4348
    4449                        notify_server(45)
     
    7580        }
    7681}
    77 
    7882//===========================================================================================================
    7983// Main compilation routines
     
    114118                        }
    115119
    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"
    117121
    118122                        //Compile the project
     
    128132                        //Run the tests from the tests directory
    129133                        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 '
    132136                        }
    133137                        else {
     
    235239//Description of a compiler (Must be serializable since pipelines are persistent)
    236240class CC_Desc implements Serializable {
    237         public String cc_name
    238         public String cpp_cc
    239         public String cfa_cc
    240 
    241         CC_Desc(String cc_name, String cpp_cc, String cfa_cc) {
    242                 this.cc_name = cc_name
    243                 this.cpp_cc = cpp_cc
    244                 this.cfa_cc = cfa_cc
     241        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
    245249        }
    246250}
     
    250254        public String name
    251255        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) {
    254259                this.name  = name
    255260                this.flags = flags
     261                this.node  = node
    256262        }
    257263}
     
    292298                switch( param.Architecture ) {
    293299                        case 'x64':
    294                                 this.Architecture = new Arch_Desc('x64', '--host=x86_64')
     300                                this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'master')
    295301                        break
    296302                        case 'x86':
    297                                 this.Architecture = new Arch_Desc('x86', '--host=i386')
     303                                this.Architecture = new Arch_Desc('x86', '--host=i386', 'master')
    298304                        break
    299305                        default :
     
    309315
    310316                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 })
    314320Architecture            : ${ this.Architecture.name }
    315321Arc Flags               : ${ this.Architecture.flags }
Note: See TracChangeset for help on using the changeset viewer.