diff options
author | Luke-Jr <luke_github1@dashjr.org> | 2016-02-09 05:18:40 +0000 |
---|---|---|
committer | Luke-Jr <luke_github1@dashjr.org> | 2016-02-09 05:18:40 +0000 |
commit | 3cc972c93ef150930526c92fc741ed4b9ccdb39e (patch) | |
tree | 026130a577c09581ad9066f9a182947036a44142 /.travis.yml | |
parent | dc3fb9755c2ee91c1a4eb03c038be2c5af047f7b (diff) | |
parent | ebf5c289882d7128e71a91e0a5bd90c1e8e90464 (diff) | |
download | bips-3cc972c93ef150930526c92fc741ed4b9ccdb39e.tar.xz |
Merge pull request #322 from luke-jr/travis
Travis: Initial formatting tests
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ed99de0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +os: linux +language: generic +sudo: false +script: + - scripts/buildtable.pl >/tmp/table.mediawiki || exit 1 + - diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true + - if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true; newdiff=$(diff -s /tmp/before.diff /tmp/after.diff -u | grep '^+'); if [ -n "$newdiff" ]; then echo "$newdiff"; exit 1; fi; else echo 'Cannot build previous commit table for comparison'; fi |