mirror of
https://github.com/triqs/dft_tools
synced 2025-01-09 12:44:03 +01:00
Merge branch 'unstable'
This commit is contained in:
commit
e95982c906
@ -25,7 +25,7 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR (NOT IS_ABSOLUTE ${CMAKE_INSTA
|
||||
endif()
|
||||
message(STATUS "-------- INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX} --------")
|
||||
|
||||
# Use git to detect App4Triqs version and git hash
|
||||
# Use git to detect app4triqs version and git hash
|
||||
execute_process(COMMAND bash "-c" "${TRIQS_GIT_EXECUTABLE} describe | sed \"s/-\\([0-9]*\\)-.*/.\\1/g\""
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
OUTPUT_VARIABLE APP4TRIQS_VERSION
|
||||
|
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -96,25 +96,25 @@ try {
|
||||
def workDir = pwd()
|
||||
/* Update documention on gh-pages branch */
|
||||
dir("$workDir/gh-pages") {
|
||||
def subdir = env.BRANCH_NAME
|
||||
git(url: "ssh://git@github.com/TRIQS/${projectName}.git", branch: "gh-pages", credentialsId: "ssh", changelog: false)
|
||||
def subdir = "${projectName}/${env.BRANCH_NAME}"
|
||||
git(url: "ssh://git@github.com/TRIQS/TRIQS.github.io.git", branch: "master", credentialsId: "ssh", changelog: false)
|
||||
sh "rm -rf ${subdir}"
|
||||
docker.image("flatironinstitute/${projectName}:${env.BRANCH_NAME}-${documentationPlatform}").inside() {
|
||||
sh "cp -rp \$INSTALL/share/doc/${projectName} ${subdir}"
|
||||
}
|
||||
sh "git add -A ${subdir}"
|
||||
sh """
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Generated documentation for ${env.BRANCH_NAME}' -m '${env.BUILD_TAG} ${commit}'
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Generated documentation for ${subdir}' -m '${env.BUILD_TAG} ${commit}'
|
||||
"""
|
||||
// note: credentials used above don't work (need JENKINS-28335)
|
||||
sh "git push origin gh-pages"
|
||||
sh "git push origin master"
|
||||
}
|
||||
/* Update docker repo submodule */
|
||||
dir("$workDir/docker") { try {
|
||||
git(url: "ssh://git@github.com/TRIQS/docker.git", branch: env.BRANCH_NAME, credentialsId: "ssh", changelog: false)
|
||||
sh "echo '160000 commit ${commit}\t${projectName}' | git update-index --index-info"
|
||||
sh """
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' -m 'Autoupdate ${projectName}' -m '${env.BUILD_TAG}'
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Autoupdate ${projectName}' -m '${env.BUILD_TAG}'
|
||||
"""
|
||||
// note: credentials used above don't work (need JENKINS-28335)
|
||||
sh "git push origin ${env.BRANCH_NAME}"
|
||||
@ -137,7 +137,7 @@ Check console output at \$BUILD_URL to view full results.
|
||||
Building \$BRANCH_NAME for \$CAUSE
|
||||
\$JOB_DESCRIPTION
|
||||
|
||||
Chages:
|
||||
Changes:
|
||||
\$CHANGES
|
||||
|
||||
End of build log:
|
||||
|
@ -12,9 +12,9 @@ To use this skeleton for a new triqs application, the following steps are necess
|
||||
```bash
|
||||
git clone https://github.com/triqs/app4triqs --branch unstable mynewapp
|
||||
cd mynewapp
|
||||
git remote set-url https://github.com/myuser/mynewapp
|
||||
git remote set-url origin https://github.com/myuser/mynewapp
|
||||
find . -type f | grep -v .git | xargs sed -i 's/app4triqs/mynewapp/g; s/APP4TRIQS/MYNEWAPP/g'
|
||||
find . | grep -v .git | xargs rename app4triqs mytriqsapp
|
||||
find . | grep -v .git | xargs rename 's/app4triqs/mytriqsapp/'
|
||||
git add -A
|
||||
git commit -m "Create mynewapp from github.com/triqs/app4triqs skeleton"
|
||||
git push
|
||||
|
@ -16,7 +16,7 @@ target_compile_definitions(app4triqs_c PRIVATE
|
||||
|
||||
# Install library and headers
|
||||
install(TARGETS app4triqs_c EXPORT app4triqs-targets DESTINATION lib)
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include/app4triqs FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")
|
||||
|
||||
|
||||
# ========= Static Analyzer Checks ==========
|
||||
|
@ -8,7 +8,7 @@ file(GLOB_RECURSE sources *.rst)
|
||||
|
||||
set(sphinx_top ${CMAKE_CURRENT_BINARY_DIR}/html/contents.html)
|
||||
add_custom_command(OUTPUT ${sphinx_top} DEPENDS ${sources}
|
||||
COMMAND ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_BINARY_DIR} html)
|
||||
COMMAND PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH} ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_BINARY_DIR} html)
|
||||
add_custom_target(docs_sphinx ALL DEPENDS ${sphinx_top} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
# Application must be compiled first
|
||||
|
Loading…
Reference in New Issue
Block a user