<commit_before>SHELL := /bin/bash
test: bashate perlcheck roundup

bashate:
	cd scripts && \
	for f in \
	    *.sh mkcloud mkchroot \
	    jenkins/{update_automation,*.sh} \
	    jenkins/ci1/*; \
	do \
	    echo "checking $$f"; \
	    bash -n $$f || exit 3; \
	    bashate --ignore E010,E020 $$f || exit 4; \
	done

perlcheck:
	cd scripts && \
	for f in *.pl jenkins/{apicheck,jenkins-job-trigger,*.pl}; \
	do \
	    perl -c $$f || exit 2; \
	done

roundup:
	cd scripts && roundup

# for travis-CI:
install:
	sudo apt-get update -qq
	sudo apt-get -y install libxml-libxml-perl libjson-xs-perl
	sudo pip install bashate
	git clone https://github.com/SUSE-Cloud/roundup && \
	cd roundup && \
	./configure && \
	make && \
	sudo make install
<commit_msg>Makefile: add suse install section<commit_after>SHELL := /bin/bash
test: bashate perlcheck roundup

bashate:
	cd scripts && \
	for f in \
	    *.sh mkcloud mkchroot \
	    jenkins/{update_automation,*.sh} \
	    jenkins/ci1/*; \
	do \
	    echo "checking $$f"; \
	    bash -n $$f || exit 3; \
	    bashate --ignore E010,E020 $$f || exit 4; \
	done

perlcheck:
	cd scripts && \
	for f in *.pl jenkins/{apicheck,jenkins-job-trigger,*.pl}; \
	do \
	    perl -c $$f || exit 2; \
	done

roundup:
	cd scripts && roundup

# for travis-CI:
install: debianinstall genericinstall

debianinstall:
	sudo apt-get update -qq
	sudo apt-get -y install libxml-libxml-perl libjson-xs-perl

suseinstall:
	sudo zypper install perl-JSON-XS perl-libxml-perl

genericinstall:
	sudo pip install bashate
	git clone https://github.com/SUSE-Cloud/roundup && \
	cd roundup && \
	./configure && \
	make && \
	sudo make install


{'fraction_non_alphanumeric': 0.1406913280776228, 'fraction_numerical': 0.01212856276531231, 'mean_word_length': 2.650442477876106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2413084', 'n_tokens_mistral': 688, 'n_tokens_neox': 615, 'n_words': 172}