Skip to content
Snippets Groups Projects
Commit 7ea3a4af authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan :coffee: Committed by Michael Davis
Browse files

gitlab-ci: drop dependency on cmake3

parent 51cb0063
No related branches found
Tags v0.0-136
No related merge requests found
......@@ -22,7 +22,7 @@ cta_srpm:
retry: 1
image: gitlab-registry.cern.ch/linuxsupport/cc7-base
script:
- yum install -y devtoolset-8 cmake cmake3 make rpm-build
- yum install -y devtoolset-8 cmake3 make rpm-build
- source /opt/rh/devtoolset-8/enable
- mkdir build_srpm
- cd build_srpm
......@@ -45,7 +45,7 @@ cta_rpm:
image: gitlab-registry.cern.ch/linuxsupport/cc7-base
script:
- cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum.repos.d/*.repo /etc/yum.repos.d/
- yum install -y devtoolset-8 cmake cmake3 make rpm-build
- yum install -y devtoolset-8 cmake3 make rpm-build
- yum -y install yum-plugin-priorities yum-plugin-versionlock
- yum install -y git
- source /opt/rh/devtoolset-8/enable
......@@ -76,7 +76,7 @@ cta_tagged_rpm:
- if [ -z "${CI_COMMIT_TAG}" ]; then echo "This is not a tagged commit, exiting"; exit 0; fi
- echo "Building package for tag ${CI_COMMIT_TAG}. CTA_VERSION=${TAG_VERSION} - CTA_RELEASE=${TAG_RELEASE}"
- cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum.repos.d/*.repo /etc/yum.repos.d/
- yum install -y devtoolset-8 cmake cmake3 make rpm-build
- yum install -y devtoolset-8 cmake3 make rpm-build
- yum -y install yum-plugin-priorities yum-plugin-versionlock
- yum install -y git
- source /opt/rh/devtoolset-8/enable
......
......@@ -159,13 +159,13 @@ rm -rf build_tree
ENDIF("${ARGV1}" STREQUAL "")
ADD_CUSTOM_TARGET(${RPMNAME}_srpm
COMMAND cpack -G TGZ --config CPackSourceConfig.cmake
COMMAND cpack3 -G TGZ --config CPackSourceConfig.cmake
COMMAND ${CMAKE_COMMAND} -E copy ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.gz ${RPM_ROOTDIR}/SOURCES
COMMAND ${RPMTools_RPMBUILD_EXECUTABLE} -bs --define=\"_topdir ${RPM_ROOTDIR}\" --define '_source_filedigest_algorithm md5' --define '_binary_filedigest_algorithm md5' --define 'neutralpackage 1' --nodeps --buildroot=${RPM_ROOTDIR}/tmp ${RPM_ROOTDIR}/SPECS/${SPECFILE_NAME}
)
ADD_CUSTOM_TARGET(${RPMNAME}_rpm
COMMAND cpack -G TGZ --config CPackSourceConfig.cmake
COMMAND cpack3 -G TGZ --config CPackSourceConfig.cmake
COMMAND ${CMAKE_COMMAND} -E copy ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.gz ${RPM_ROOTDIR}/SOURCES
COMMAND ${RPMTools_RPMBUILD_EXECUTABLE} -bb --define=\"_topdir ${RPM_ROOTDIR}\" $ENV{RPMDEFS} --buildroot=${RPM_ROOTDIR}/tmp ${RPM_ROOTDIR}/SPECS/${SPECFILE_NAME}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment