Changes in / [0759ba0:36463e2]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r0759ba0 r36463e2  
    174174
    175175def notify_server(int wait) {
    176         sh """curl --silent --show-error --data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true"""
     176        sh """curl --data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true"""
    177177        return
    178178}
     
    260260                def install_dir = pwd tmp: true
    261261
    262                 // Build outside of the src tree to ease cleaning
    263                 sh "mkdir -p build"
    264                 dir ('build') {
    265                         //Configure the conpilation (Output is not relevant)
    266                         //Use the current directory as the installation target so nothing escapes the sandbox
    267                         //Also specify the compiler by hand
    268                         sh "../configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet"
    269 
    270                         //Compile the project
    271                         sh 'make -j 8 --no-print-directory'
    272                 }
     262                //Output compiler version to help with debug
     263                echo """C++ Compiler :"""
     264                sh "which ${compiler.cpp_cc} && ${compiler.cpp_cc} --version"
     265                echo """C   Compiler :"""
     266                sh "which ${compiler.cfa_cc} && ${compiler.cfa_cc} --version"
     267
     268                //Configure the conpilation (Output is not relevant)
     269                //Use the current directory as the installation target so nothing escapes the sandbox
     270                //Also specify the compiler by hand
     271                sh "./configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet"
     272
     273                //Compile the project
     274                sh 'make -j 8 --no-print-directory V=0 install'
    273275        }
    274276}
     
    277279        build_stage('Test') {
    278280
    279                 dir ('build/src/tests') {
    280                         //Run the tests from the tests directory
    281                         if ( do_alltests ) {
    282                                 sh 'make all-tests debug=yes --no-print-directory'
    283                                 sh 'make all-tests debug=no --no-print-directory'
    284                         }
    285                         else {
    286                                 sh 'make --no-print-directory'
    287                         }
     281                //Run the tests from the tests directory
     282                if ( do_alltests ) {
     283                        sh 'make -C src/tests all-tests debug=yes --no-print-directory'
     284                        sh 'make -C src/tests all-tests debug=no --no-print-directory'
     285                }
     286                else {
     287                        sh 'make -C src/tests --no-print-directory'
    288288                }
    289289        }
     
    302302def clean() {
    303303        build_stage('Cleanup') {
    304                 // clean the build by wipping the build directory
    305                 sh 'rm -rf build'
     304
     305                //do a maintainer-clean to make sure we need to remake from scratch
     306                sh 'make maintainer-clean > /dev/null'
    306307        }
    307308}
     
    328329
    329330                //Then publish the results
    330                 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'
     331                sh 'curl -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'
    331332        }
    332333}
Note: See TracChangeset for help on using the changeset viewer.