mirror of
https://github.com/triqs/dft_tools
synced 2025-01-08 20:33:16 +01:00
[jenkins] more alignment with triqs
This commit is contained in:
parent
c2a4685719
commit
c99d08cbc0
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -67,6 +67,7 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
|
|||||||
/* install real branches in a fixed predictable place so apps can find them */
|
/* install real branches in a fixed predictable place so apps can find them */
|
||||||
def installDir = keepInstall ? "${env.HOME}/install/${projectName}/${env.BRANCH_NAME}/${platform}" : "$tmpDir/install"
|
def installDir = keepInstall ? "${env.HOME}/install/${projectName}/${env.BRANCH_NAME}/${platform}" : "$tmpDir/install"
|
||||||
def triqsDir = "${env.HOME}/install/triqs/${triqsBranch}/${platform}"
|
def triqsDir = "${env.HOME}/install/triqs/${triqsBranch}/${platform}"
|
||||||
|
def venv = triqsDir
|
||||||
dir(installDir) {
|
dir(installDir) {
|
||||||
deleteDir()
|
deleteDir()
|
||||||
}
|
}
|
||||||
@ -75,14 +76,14 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
|
|||||||
|
|
||||||
def hdf5 = "${env.BREW}/opt/hdf5@1.10"
|
def hdf5 = "${env.BREW}/opt/hdf5@1.10"
|
||||||
dir(buildDir) { withEnv(platformEnv[1].collect { it.replace('\$BREW', env.BREW) } + [
|
dir(buildDir) { withEnv(platformEnv[1].collect { it.replace('\$BREW', env.BREW) } + [
|
||||||
"PATH=$triqsDir/bin:${env.BREW}/bin:/usr/bin:/bin:/usr/sbin",
|
"PATH=$venv/bin:${env.BREW}/bin:/usr/bin:/bin:/usr/sbin",
|
||||||
"HDF5_ROOT=$hdf5",
|
"HDF5_ROOT=$hdf5",
|
||||||
"C_INCLUDE_PATH=$hdf5/include:${env.BREW}/include",
|
"C_INCLUDE_PATH=$hdf5/include:${env.BREW}/include",
|
||||||
"CPLUS_INCLUDE_PATH=$triqsDir/include:$hdf5/include:${env.BREW}/include",
|
"CPLUS_INCLUDE_PATH=$venv/include:$hdf5/include:${env.BREW}/include",
|
||||||
"LIBRARY_PATH=$triqsDir/lib:$hdf5/lib:${env.BREW}/lib",
|
"LIBRARY_PATH=$venv/lib:$hdf5/lib:${env.BREW}/lib",
|
||||||
"LD_LIBRARY_PATH=$hdf5/lib",
|
"LD_LIBRARY_PATH=$hdf5/lib",
|
||||||
"PYTHONPATH=$installDir/lib/python3.7/site-packages",
|
"PYTHONPATH=$installDir/lib/python3.7/site-packages",
|
||||||
"CMAKE_PREFIX_PATH=$triqsDir/lib/cmake/triqs"]) {
|
"CMAKE_PREFIX_PATH=$venv/lib/cmake/triqs"]) {
|
||||||
deleteDir()
|
deleteDir()
|
||||||
/* note: this is installing into the parent (triqs) venv (install dir), which is thus shared among apps and so not be completely safe */
|
/* note: this is installing into the parent (triqs) venv (install dir), which is thus shared among apps and so not be completely safe */
|
||||||
sh "pip3 install -U -r $srcDir/requirements.txt"
|
sh "pip3 install -U -r $srcDir/requirements.txt"
|
||||||
|
Loading…
Reference in New Issue
Block a user