Configuration:
set (PKGCLOUD_USERNAME "danse") set (PKGCLOUD_REPO "ins")
set (DOCKER_PKGING_DEPS_DEB "danse.ins journal") set (DOCKER_PKGING_DEPS_RPM "danse.ins journal") set (DOCKER_PKGING_TEST_SRPM ". /opt/danse/bin/setup-danse.sh && python -c 'import pyre; print pyre'") set (DOCKER_PKGING_TEST_RPM ${DOCKER_PKGING_TEST_SRPM}) set (DOCKER_PKGING_TEST_DEB ${DOCKER_PKGING_TEST_SRPM}) """
execute_process( COMMAND rm -rf docker WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) execute_process( COMMAND git clone https://github.com/danse-inelastic/packaging-use-docker docker WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) add_subdirectory(docker) """
Usage:
For debian $ cmake .. or $ cmake -D DOCKER_PKGING_DEB_DIST_NAME=ubuntu -D DOCKER_PKGING_DEB_DIST_VERSION=14.04 ..
and then $ make test-deb
For rpm $ cmake .. or $ cmake -D DOCKER_PKGING_RPM_DIST_NAME=centos -D DOCKER_PKGING_RPM_DIST_VERSION=7 ..
and then $ make test-rpm
test-deb:
test-rpm
Problems:
Old documentation:
To build src rpm:
$ git clone
src rpm will be in docker/srpm/build/SRPMS/
Upload it to release site.
Then test the src rpm by
$ (sudo) make test-srpm