Check style during Travis CI builds

This bumps the Citus tools to 0.4.0, which include support for adding
a recent (0.6.3) uncrustify to Travis in addition to support for fully
installing Travis scripts to system locations. For brevity, suffixes
have been removed from Travis shell scripts.

The main additional logic here is just ensuring Travis CI gets a newer
uncrustify install and that `citus_indent` is called with the `--check`
flag, which exits with a nonzero status if any files don't comply.
pull/696/head
Jason Petersen 2016-08-02 22:22:16 -07:00
parent 6be5217872
commit 3a8534eb21
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 9 additions and 6 deletions

View File

@ -10,10 +10,13 @@ env:
matrix:
- PGVERSION=9.5
before_install:
- git clone -b v0.3.3 --depth 1 https://github.com/citusdata/tools.git
- tools/travis/setup_apt.sh
- tools/travis/nuke_pg.sh
- git clone -b v0.4.0 --depth 1 https://github.com/citusdata/tools.git
- sudo make -C tools install
- setup_apt
- nuke_pg
install:
- tools/travis/install_pg.sh
script: tools/travis/pg_travis_multi_test.sh
after_success: tools/travis/sync_to_enterprise
- install_uncrustify
- install_pg
before_script: citus_indent --quiet --check
script: pg_travis_multi_test
after_success: sync_to_enterprise