Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mlz
BornAgain
Commits
fe9b0d16
Commit
fe9b0d16
authored
Mar 17, 2021
by
Wuttke, Joachim
Browse files
CI: pack TGZ
parent
4ae4a836
Pipeline
#33548
passed with stage
in 19 minutes and 57 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fe9b0d16
...
...
@@ -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
cmake/BornAgain/Pack.cmake
View file @
fe9b0d16
...
...
@@ -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
${
C
MAKE
_PACKAGE_INSTALL_DIRECTORY
}
-
${
BORNAGAIN_ARCHITECTURE
}
)
set
(
CPACK_PACKAGE_FILE_NAME
${
C
PACK
_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
include
(
BornAgain/PackDebian
)
else
()
set
(
CPACK_GENERATOR
"TGZ"
)
elseif
(
UNIX
)
if
(
BUILD_DEBIAN
)
# one can build debian package only on UNIX system
include
(
BornAgain/PackDebian
)
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
)
cmake/BornAgain/PackSource.cmake
0 → 100644
View file @
fe9b0d16
# 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/
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment