common/travis: add consistency check on travis runs

This commit is contained in:
Enno Boland 2016-03-21 21:20:10 +01:00
parent 096aac3603
commit ff13ab493b
6 changed files with 14 additions and 5 deletions

View file

@ -10,7 +10,8 @@ env:
- PATH=$PATH:$HOME/bin
matrix:
- XLINT=1
- ACTION=xlint
- ACTION=consistency-check
- ARCH=x86_64 BOOTSTRAP=x86_64
- ARCH=i686 BOOTSTRAP=i686
- ARCH=armv6hf BOOTSTRAP=x86_64
@ -24,6 +25,7 @@ before_script:
- common/travis/fetch_upstream.sh
- common/travis/changed_templates.sh
- common/travis/xlint.sh
- common/travis/consistency_check.sh
- common/travis/bootstrap.sh $BOOTSTRAP
script:

View file

@ -2,6 +2,6 @@
#
# bootstrap.sh
[ "$XLINT" ] && exit 0
[ "$ACTION" ] && exit 0
./xbps-src -H $HOME/hostdir binary-bootstrap $1

View file

@ -2,7 +2,7 @@
#
# build.sh
[ "$XLINT" ] && exit 0
[ "$ACTION" ] && exit 0
if [ "$1" != "$2" ]; then
arch="-a $2"

View file

@ -0,0 +1,7 @@
#!/bin/sh
#
# consistency_check.sh
[ "$ACTION" = "consistency-check" ] || exit 0
./xbps-src consistency-check

View file

@ -2,7 +2,7 @@
#
# show_files.sh
[ "$XLINT" ] && exit 0
[ "$ACTION" ] && exit 0
if [ "$1" != "$2" ]; then
arch="-a $2"

View file

@ -2,6 +2,6 @@
#
# xlint.sh
[ "$XLINT" ] || exit 0
[ "$ACTION" = "xlint" ] || exit 0
awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates | xargs xlint