Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for rst docs and migrate on new itcase sphinx theme fixes #40
- Loading branch information
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[directives] | ||
ignore=automodule,autofunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ script: | |
|
||
after_success: | ||
coveralls | ||
./test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! /bin/bash | ||
# | ||
# test.sh | ||
# Copyright (C) 2015 uralbash <root@uralbash.ru> | ||
# | ||
# Distributed under terms of the MIT license. | ||
# | ||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
NC='\033[0m' # No Color | ||
PROJECT_NAME='sqlalchemy_mptt' | ||
|
||
RST_FILES=`find . -name "*.rst" -printf "%p "` | ||
RST_CHECK=$(rstcheck $RST_FILES --report 2 3>&1 1>&2 2>&3 | tee >(cat - >&2)) # fd=STDERR_FILENO | ||
FLAKE8=$(flake8 ./$PROJECT_NAME/) | ||
|
||
echo -e "${RED}" | ||
if [ -n "$RST_CHECK" ] || | ||
[ -n "$FLAKE8" ] | ||
then | ||
echo -e "RST_CHECK: ${RST_CHECK:-OK}" | ||
echo -e "FLAKE8: ${FLAKE8:-OK}" | ||
exit 1 | ||
else | ||
echo -e "${GREEN}OK!" | ||
fi | ||
echo -e "${NC}" |