This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW] Build and deploy github sphinix project page
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 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
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,20 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
from getaddons import get_modules | ||
|
||
|
||
root_dir = os.path.dirname(os.path.abspath(__file__)) | ||
status = 0 | ||
|
||
for addon in get_modules(os.path.abspath('.')): | ||
status += subprocess.call(['sphinx-apidoc', | ||
'-f', | ||
'-o', | ||
'docs/source/addons/%s' % addon, | ||
addon]) | ||
status += subprocess.call(['travis-sphinx', '-n', 'build']) | ||
|
||
sys.exit(0 if status == 0 else 1) |
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 |
---|---|---|
|
@@ -56,6 +56,7 @@ if __name__ == '__main__': | |
is_oca_project = os.environ.get('TRAVIS_REPO_SLUG', '').startswith('OCA/') | ||
is_oca_transifex_user = os.environ.get('TRANSIFEX_USER') == \ | ||
'[email protected]' | ||
doc_enabled = os.environ.get('DOC') == '1' | ||
|
||
# TRAVIS_PULL_REQUEST contains the pull request number or 'false' | ||
is_pull_request = os.environ.get('TRAVIS_PULL_REQUEST') != 'false' | ||
|
@@ -79,5 +80,8 @@ if __name__ == '__main__': | |
if transifex_enabled and is_valid_transifex: | ||
tests.append(['travis_transifex.py']) | ||
|
||
if doc_enabled: | ||
tests.append(['travis_doc_build']) | ||
|
||
if tests: | ||
exit(main(tests)) |