diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..efbddd0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +before_install: chmod +x tests/check-lines.sh +install: true +script: ./tests/check-lines.sh diff --git a/tests/check-lines.sh b/tests/check-lines.sh new file mode 100644 index 0000000..c35d2d6 --- /dev/null +++ b/tests/check-lines.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +UNIQUE_TAB_LINES_COUNT=$(sed 's/[^\t]//g' TEST-DATA.tsv | sort -u | wc -l) + +if [ $UNIQUE_TAB_LINES_COUNT -eq "1" ] +then + echo "All lines have the same number of tabs. All good!" +else + echo "Not all lines have the same number of tabs." + echo $UNIQUE_TAB_LINES_COUNT + exit 1 +fi