[PATCH] Add a new makefile target that does everything needed for jenkins.

David Shea dshea at redhat.com
Wed Jul 22 16:55:44 UTC 2015


On 07/22/2015 10:22 AM, Chris Lumens wrote:
> We should have as much of the logic of how the CI tests are run in source
> control as possible, so that's what this target is for.  Besides this, jenkins
> just runs a "git clean" first.
> ---
>   Makefile.am | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index b2cef40..8d56898 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -46,7 +46,7 @@ ZANATA_PULL_ARGS = --transdir $(srcdir)/po/
>   ZANATA_PUSH_ARGS = --srcdir $(srcdir)/po/ --push-type source --force
>   
>   RC_RELEASE ?= $(shell date -u +0.1.%Y%m%d%H%M%S)
> -MOCKCHROOT ?= fedora-rawhide-x86_64
> +MOCKCHROOT ?= fedora-rawhide-$(shell uname -m)
>   
>   tag:
>   	@git tag -s -a -m "Tag as $(ARCHIVE_TAG)" $(ARCHIVE_TAG)
> @@ -153,3 +153,11 @@ runglade:
>   	GLADE_CATALOG_SEARCH_PATH=$(srcdir)/widgets/glade \
>   	GLADE_MODULE_SEARCH_PATH=$(builddir)/widgets/src/.libs \
>   	glade ${GLADE_FILE}
> +
> +ci: rc-release
> +	$(MAKE) -C utils/dd
> +	$(MAKE) TMPDIR=/var/tmp check
> +	@mkdir -p repo
> +	@mv *rpm repo
> +	@createrepo -p repo
> +	@sudo $(MAKE) TMPDIR=/var/tmp TESTS=install/run_install_test.sh TEST_ANACONDA_REPO=file://$(srcdir)/repo/ check

Ack.


More information about the anaconda-patches mailing list