Skip to content

Commit

Permalink
Add Astyle check to the Travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
scribblemaniac committed Sep 28, 2019
1 parent ebc8abe commit 99a192c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ addons:
- graphviz
- python3
- python3-pip
- astyle

before_install:
- |
Expand All @@ -57,7 +58,7 @@ before_install:
if [ "$ver" -le "27" ]; then
brew upgrade python;
fi
brew install p7zip qt gpg;
brew install p7zip qt gpg astyle;
brew link qt --force;
fi
Expand All @@ -70,10 +71,14 @@ install:
- pip3 -V

before_script:
- echo "are changes related to source code?"
- 'echo "Checking style guidelines";
astyle -rn --project "./*.cpp" "./*.h";
git diff;
git checkout -- .;'
- echo "Are changes related to source code?"
- 'if [ "$TRAVIS_BRANCH" != "release" ]; then
bash $TRAVIS_BUILD_DIR/util/checkchanges.sh;
fi'
bash $TRAVIS_BUILD_DIR/util/checkchanges.sh;
fi'
- 'if [ "$TRAVIS_OS_NAME" == "linux" ]; then
. /opt/qt59/bin/qt59-env.sh;
export DISPLAY=:99.0;
Expand Down

0 comments on commit 99a192c

Please sign in to comment.