File: .travis-check-style.sh

package info (click to toggle)
fplll 5.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 5,780 kB
  • sloc: cpp: 17,882; sh: 1,050; makefile: 170; perl: 46; python: 42
file content (19 lines) | stat: -rwxr-xr-x 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

if [ "$CI" = "true" ] && [ "$TRAVIS_OS_NAME" = "osx" ]; then
   echo "Skipping style check on OSX due to being unreliable.";
   exit 0;
fi

make check-style
if [[ $(git status -s) ]]; 
then
	git --no-pager diff
	tput setaf 1;
	echo "Code does not adhere to the project standards. Run \"make check-style\".";
	exit 1;
else 
	tput setaf 2;
	echo "Code adheres to the project standards.";
	exit 0;
fi;