integrate author check into travis
This commit is contained in:
parent
3f9d44ff15
commit
7c17141fb2
|
@ -1,6 +1,8 @@
|
|||
language: python
|
||||
sudo: false
|
||||
cache: pip
|
||||
git:
|
||||
depth: 100000
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
|
@ -37,6 +39,7 @@ matrix:
|
|||
- python: pypy3
|
||||
before_install:
|
||||
- pip install tox codecov 'sphinx>=1.5.1'
|
||||
- ./doc/generate_authors.sh --check
|
||||
script:
|
||||
- tox
|
||||
- codecov
|
||||
|
|
|
@ -12,6 +12,15 @@ The pull requests and issues will be prefilled with templates. Please fill in yo
|
|||
This project uses `semantic versioning <http://semver.org/>`_ and tries to adhere to the proposed rules as
|
||||
well as possible.
|
||||
|
||||
Author-list
|
||||
-----------
|
||||
|
||||
This project keeps a list of authors. This can be auto-generated by calling `./doc/generate-authors.sh`.
|
||||
When contributing the first time, please include a commit with the output of this script in place.
|
||||
Otherwise the integration-check will fail.
|
||||
|
||||
When you change your username or mail-address, please also update the `.mailmap` and the authors-list.
|
||||
|
||||
Style-Guide
|
||||
-----------
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
GENLIST=$(git shortlog -s -n | cut -f2 | sort)
|
||||
AUTHORSFILE="$(dirname $0)/../AUTHORS"
|
||||
TEMPAUTHORSFILE="/tmp/python-escpos-authorsfile"
|
||||
|
||||
if [ "$#" -eq 1 ]
|
||||
then
|
||||
echo "$GENLIST">$TEMPAUTHORSFILE
|
||||
diff -q --from-file $AUTHORSFILE $TEMPAUTHORSFILE
|
||||
else
|
||||
echo "$GENLIST">$AUTHORSFILE
|
||||
fi
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
git shortlog -s -n | cut -f2 | sort
|
Loading…
Reference in New Issue