Skip to content

Commit

Permalink
note master branch when built on travis also.
Browse files Browse the repository at this point in the history
Thanks to @fschulze for the pointer in
#295 (comment)
  • Loading branch information
dkg committed Dec 21, 2017
1 parent 16a4f7c commit 0d52f84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

Expand Down Expand Up @@ -378,6 +378,11 @@
def setup(app):
app.add_stylesheet('custom.css')
staging = True
try:
if os.env['TRAVIS_REPO_SLUG'] == 'autocrypt/autocrypt' and os.env['TRAVIS_BRANCH'] == 'master':
staging = False
except:
pass
try:
import git
with git.Repo(search_parent_directories=True) as repo:
Expand Down

0 comments on commit 0d52f84

Please sign in to comment.