File: test_doc.sh

package info (click to toggle)
python-redbaron 0.9.2-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: python: 6,650; makefile: 146; sh: 28
file content (22 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set +x

if [ "$(python --version | grep 2.6)" ]
then
    exit 0
fi

pip install -r requirements-docs.txt

cd docs
rm -rf _build

result=$(make html 2>&1)

echo $result

if [ "$(echo $result | grep 'Exception in')" ]
then
  exit 1
fi