Skip to content

Commit

Permalink
Add gitlint check to automation (SOC-9559)
Browse files Browse the repository at this point in the history
The SUSE-Cloud/automation repo is our backbone for storing everything CI and
Release Engineering related. As this is such a critical piece we have to make
sure whatever is merged there is tracked, agreed and well documented. By using
the existing gitlint config we make a first step towards this direction.
  • Loading branch information
Rick Salevsky committed Jun 24, 2019
1 parent 7c80ed3 commit 7eee3b2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SHELL := /bin/bash
test: filecheck bashate perlcheck rubycheck pythoncheck rounduptest flake8 python_unittest jjb_test
test: filecheck bashate perlcheck rubycheck pythoncheck rounduptest flake8 python_unittest jjb_test gitlint

clean:
rm -f scripts/jenkins/jenkins-job-triggerc scripts/lib/libvirt/{net-configc,vm-startc,compute-configc,net-startc,admin-configc,cleanupc}
Expand Down Expand Up @@ -76,6 +76,9 @@ cisd_deploy: gerrit-project-regexp
cioo_deploy:
jenkins-jobs --conf /etc/jenkins_jobs/jenkins_jobs-cioo.ini update jenkins/ci.opensuse.org:jenkins/ci.opensuse.org/templates/ openstack*

gitlint:
gitlint --commits master..HEAD -C scripts/jenkins/gitlint.ini

# for travis-CI:
install: debianinstall genericinstall

Expand All @@ -87,8 +90,8 @@ suseinstall:
sudo zypper install perl-JSON-XS perl-libxml-perl perl-libwww-perl python-pip python3-pip libvirt-python python3-libvirt-python

genericinstall:
sudo pip2 install -U 'pbr>=2.0.0,!=2.1.0' bashate 'flake8<3.0.0' flake8-import-order jenkins-job-builder requests
sudo pip3 install -U 'pbr>=2.0.0,!=2.1.0' bashate 'flake8<3.0.0' flake8-import-order jenkins-job-builder requests
sudo pip2 install -U 'pbr>=2.0.0,!=2.1.0' bashate 'flake8<3.0.0' flake8-import-order jenkins-job-builder requests gitlint
sudo pip3 install -U 'pbr>=2.0.0,!=2.1.0' bashate 'flake8<3.0.0' flake8-import-order jenkins-job-builder requests gitlint
git clone https://github.com/SUSE-Cloud/roundup && \
cd roundup && \
./configure && \
Expand Down

0 comments on commit 7eee3b2

Please sign in to comment.