forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Inria CI's extra-checks job, take #1
This job did actually do two different things: 1. Check that the compiler can be built without the world.opt target 2. Run sanitizers This commit thus splits the extra-checks job into two separate ones that are defined as Jenkins pipeline jobs named sanitizers and step-by-step-build.
- Loading branch information
Showing
5 changed files
with
114 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/**************************************************************************/ | ||
/* */ | ||
/* OCaml */ | ||
/* */ | ||
/* Sebastien Hinderer, INRIA Paris */ | ||
/* */ | ||
/* Copyright 2020 Institut National de Recherche en Informatique et */ | ||
/* en Automatique. */ | ||
/* */ | ||
/* All rights reserved. This file is distributed under the terms of */ | ||
/* the GNU Lesser General Public License version 2.1, with the */ | ||
/* special exception on linking described in the file LICENSE. */ | ||
/* */ | ||
/**************************************************************************/ | ||
|
||
/* Pipeline for the sanitizers job on Inria's CI */ | ||
|
||
pipeline { | ||
agent { label 'ocaml-linux-64' } | ||
stages { | ||
stage('Compiling and testing OCaml with sanitizers') { | ||
steps { | ||
sh 'tools/ci/inria/sanitizers/script' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
emailext ( | ||
to: '[email protected]', | ||
subject: 'Job $JOB_NAME $BUILD_STATUS (build #$BUILD_NUMBER)', | ||
body: 'Changes since the last successful build:\n\n' + | ||
'${CHANGES, format="%r %a %m"}\n\n' + | ||
'See the attached build log or check console output here:\n' + | ||
'$BUILD_URL\n', | ||
/* recipientProviders: [[$class: 'DevelopersRecipientProvider']], */ | ||
attachLog: true | ||
) | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/**************************************************************************/ | ||
/* */ | ||
/* OCaml */ | ||
/* */ | ||
/* Sebastien Hinderer, INRIA Paris */ | ||
/* */ | ||
/* Copyright 2020 Institut National de Recherche en Informatique et */ | ||
/* en Automatique. */ | ||
/* */ | ||
/* All rights reserved. This file is distributed under the terms of */ | ||
/* the GNU Lesser General Public License version 2.1, with the */ | ||
/* special exception on linking described in the file LICENSE. */ | ||
/* */ | ||
/**************************************************************************/ | ||
|
||
/* Pipeline for the step-by-step-build job on Inria's CI */ | ||
|
||
/* Build OCaml the legacy way (without using the world.opt target) */ | ||
|
||
pipeline { | ||
agent { label 'ocaml-linux-64' } | ||
stages { | ||
stage('Building the OCaml compiler step by step ' + | ||
+ '(without using the world.opt target)') { | ||
steps { | ||
sh 'tools/ci/inria/step-by-step-build/script' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
emailext ( | ||
to: '[email protected]', | ||
subject: 'Job $JOB_NAME $BUILD_STATUS (build #$BUILD_NUMBER)', | ||
body: 'Changes since the last successful build:\n\n' + | ||
'${CHANGES, format="%r %a %m"}\n\n' + | ||
'See the attached build log or check console output here:\n' + | ||
'$BUILD_URL\n', | ||
/* recipientProviders: [[$class: 'DevelopersRecipientProvider']], */ | ||
attachLog: true | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
#************************************************************************** | ||
#* * | ||
#* OCaml * | ||
#* * | ||
#* Sebastien Hinderer projet Cambium, INRIA Paris * | ||
#* * | ||
#* Copyright 2020 Institut National de Recherche en Informatique et * | ||
#* en Automatique. * | ||
#* * | ||
#* All rights reserved. This file is distributed under the terms of * | ||
#* the GNU Lesser General Public License version 2.1, with the * | ||
#* special exception on linking described in the file LICENSE. * | ||
#* * | ||
#************************************************************************** | ||
|
||
jobs=8 | ||
instdir="$HOME/ocaml-tmp-install-$$" | ||
./configure --prefix "$instdir" --disable-dependency-generation | ||
make $jobs world | ||
make $jobs opt | ||
make $jobs opt.opt | ||
make install | ||
rm -rf "$instdir" | ||
# It's a build system test only, so we don't bother testing the compiler | ||
''' |