Changeset e507c11


Ignore:
Timestamp:
Jun 26, 2019, 3:08:07 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
f253e4a
Parents:
35a408b7
Message:

Jenkins now builds translator and libraries in several steps to improve stage view in jenkins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r35a408b7 re507c11  
    106106
    107107def build() {
    108         build_stage('Build', true) {
     108        // build_stage('Build', true) {
     109        //      // Build outside of the src tree to ease cleaning
     110        //      dir (BuildDir) {
     111        //              //Configure the conpilation (Output is not relevant)
     112        //              //Use the current directory as the installation target so nothing escapes the sandbox
     113        //              //Also specify the compiler by hand
     114        //              targets=""
     115        //              if( Settings.RunAllTests || Settings.RunBenchmark ) {
     116        //                      targets="--with-target-hosts='host:debug,host:nodebug'"
     117        //              } else {
     118        //                      targets="--with-target-hosts='host:debug'"
     119        //              }
     120
     121        //              sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"
     122
     123        //              //Compile the project
     124        //              sh 'make -j 8 --no-print-directory'
     125        //      }
     126        // }
     127
     128        debug = true
     129        release = Settings.RunAllTests || Settings.RunBenchmark
     130        build_stage('Build : configure', true) {
    109131                // Build outside of the src tree to ease cleaning
    110132                dir (BuildDir) {
     
    120142
    121143                        sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"
    122 
    123                         //Compile the project
    124                         sh 'make -j 8 --no-print-directory'
     144                }
     145        }
     146
     147        build_stage('Build : cfa-cpp', true) {
     148                // Build outside of the src tree to ease cleaning
     149                dir (BuildDir) {
     150                        // Build driver
     151                        sh 'make -j 8 --no-print-directory -C driver'
     152
     153                        // Build translator
     154                        sh 'make -j 8 --no-print-directory -C src'
     155                }
     156        }
     157
     158        build_stage('Build : libcfa(debug)', debug) {
     159                // Build outside of the src tree to ease cleaning
     160                dir (BuildDir) {
     161                        sh "make -j 8 --no-print-directory -C libcfa/${Settings.Architecture.name}-debug"
     162                }
     163        }
     164
     165        build_stage('Build : libcfa(nodebug)', release) {
     166                // Build outside of the src tree to ease cleaning
     167                dir (BuildDir) {
     168                        sh "make -j 8 --no-print-directory -C libcfa/${Settings.Architecture.name}-nodebug"
    125169                }
    126170        }
Note: See TracChangeset for help on using the changeset viewer.