Commit fe9b0d16 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CI: pack TGZ

parent 4ae4a836
Pipeline #33548 passed with stage
in 19 minutes and 57 seconds
......@@ -58,3 +58,8 @@ native_Debian_clang:
- cmake .. -DCMAKE_CXX_COMPILER_LAUNCHER=ccache #-DWERROR=ON
- xvfb-run make -j6 # TODO rm mvvm tests, then rm xvfb-run
- xvfb-run ctest -j6 --output-on-failure
- make package_source
artifacts:
paths:
- build/*gz
expire_in: 10 days
......@@ -12,7 +12,7 @@ set(CPACK_PACKAGE_RELOCATABLE True)
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION})
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_SOURCE_PACKAGE_FILE_NAME})
set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PACKAGE_INSTALL_DIRECTORY}-${BORNAGAIN_ARCHITECTURE})
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_INSTALL_DIRECTORY}-${BORNAGAIN_ARCHITECTURE})
if(NOT CMAKE_BUILD_TYPE STREQUAL Release)
string(APPEND CPACK_PACKAGE_FILE_NAME -${CMAKE_BUILD_TYPE})
endif()
......@@ -22,54 +22,16 @@ if(WIN32)
include(BornAgain/PackWindows)
elseif(APPLE)
include(BornAgain/PackMacOS)
elseif(UNIX AND BUILD_DEBIAN) # one can build debian package only on UNIX system
elseif(UNIX)
if(BUILD_DEBIAN) # one can build debian package only on UNIX system
include(BornAgain/PackDebian)
else()
set(CPACK_GENERATOR "TGZ")
endif()
include(BornAgain/PackSource)
endif()
# Generating the source package
set(CPACK_SOURCE_GENERATOR "TGZ")
message(STATUS "Installer name: ${CPACK_PACKAGE_FILE_NAME}")
message(STATUS "Source package name: ${CPACK_SOURCE_PACKAGE_FILE_NAME}")
# Specify which files not to include into the source package generated by make package_source
set(CPACK_SOURCE_IGNORE_FILES
${CPACK_SOURCE_IGNORE_FILES} # first take the default parameters
/Doc/FFCatalog/
/Doc/PhysicsManual/
/devtools/edit-scripts/
/devtools/packaging/
/devtools/tmp-examples/
/devtools/tmp-unsorted/
/XCode_BornAgain.xcodeproj/
~$
/.git/
/\\\\.git/
/\\\\\\\\.git/ # more screeneng symbols is neccesary because of double file processing by cmake and cpack
\\\\\\\\.swp$
\\\\.swp$
/.metadata/
/.settings/
\\\\.cproject
\\\\.project
/\\\\.idea/
\\\\.lssrc
\\\\.gitignore
\\\\.DS_Store
\\\\.obj
CMakeLists.txt.user
/bin/release.sh.in # user will not need it
/devtools/git-utils/cl_lines_of_code.py
/devtools/git-utils/qqq.png # remove this line when unneeded
.pro$
.pro.user$
.pri$
build/
)
include(CPack)
set(CPACK_COMPONENTS_ALL Libraries Headers Examples)
# Pack BornAgain source archive
#
# To create the .tar.gz file, run "make package_source".
set(CPACK_ARCHIVE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}.tgz)
#set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "TGZ")
# Specify which files not to include into the source package generated by make package_source
set(CPACK_SOURCE_IGNORE_FILES
${CPACK_SOURCE_IGNORE_FILES} # first take the default parameters
/Doc/FFCatalog/
/Doc/PhysicsManual/
/devtools/edit-scripts/
/devtools/packaging/
/devtools/tmp-examples/
/devtools/tmp-unsorted/
/XCode_BornAgain.xcodeproj/
~$
/\\\\.git/
/\\\\\\\\.git/ # more screeneng symbols is neccesary because of double file processing by cmake and cpack
\\\\\\\\.swp$
\\\\.swp$
/.metadata/
/.settings/
\\\\.cproject
\\\\.project
/\\\\.idea/
\\\\.lssrc
\\\\.gitignore
\\\\.DS_Store
\\\\.obj
CMakeLists.txt.user
/bin/release.sh.in # user will not need it
/devtools/git-utils/cl_lines_of_code.py
/devtools/git-utils/qqq.png # remove this line when unneeded
.pro$
.pro.user$
.pri$
.git/
build/
debug/
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment