Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Using SCVersioning. Changelog. Disabled tests.
Browse files Browse the repository at this point in the history
Having docs auto-update in GitHub Pages on every push/tag (not pull
request, no encrypted vars).

Including changelog in Sphinx docs. Keeping it in README.rst and having
Sphinx include it.

No need to set html_theme_path for RTD Theme.

Had to disable screen shot tests on AppVeyor since they stopped working,
something changed on the CI. Created
#30 to track it.
  • Loading branch information
Robpol86 committed Jul 24, 2016
1 parent abaaa35 commit 2f083ee
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Expand Up @@ -11,6 +11,14 @@ after_success:
- appveyor-artifacts -mi download
- coverage combine
- coveralls
- touch docs/key; chmod 600 docs/key # Secure before storing key data.
- openssl aes-256-cbc -K $encrypted_c89fed6a587d_key -iv $encrypted_c89fed6a587d_iv -in docs/key.enc -out docs/key -d
- eval `ssh-agent -s`; ssh-add docs/key
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- git remote set-url origin "git@github.com:$TRAVIS_REPO_SLUG"
- export ${!TRAVIS*} # For commit messages.
- tox -e docsV

# Deploy.
deploy:
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -65,6 +65,8 @@ Source code for examples: `example1.py <https://github.com/Robpol86/terminaltabl
`example2.py <https://github.com/Robpol86/terminaltables/blob/master/example2.py>`_, and
`example3.py <https://github.com/Robpol86/terminaltables/blob/master/example3.py>`_

.. changelog-section-start
Changelog
=========

Expand Down Expand Up @@ -149,3 +151,5 @@ Added
------------------

* Initial release.

.. changelog-section-end
10 changes: 5 additions & 5 deletions appveyor.yml
Expand Up @@ -11,8 +11,8 @@ build_script: pip install tox
test_script: tox -e lint,py35,py34,py33,py27,py26,py35x64,py34x64,py33x64,py27x64,py26x64

# Post.
on_finish:
- appveyor PushArtifact test_ascii_table.png
- appveyor PushArtifact test_double_table.png
- appveyor PushArtifact test_single_table.png
- appveyor PushArtifact test_terminal_io.png
# on_finish: https://github.com/Robpol86/terminaltables/issues/30
#- appveyor PushArtifact test_ascii_table.png https://github.com/Robpol86/terminaltables/issues/30
#- appveyor PushArtifact test_double_table.png https://github.com/Robpol86/terminaltables/issues/30
#- appveyor PushArtifact test_single_table.png https://github.com/Robpol86/terminaltables/issues/30
#- appveyor PushArtifact test_terminal_io.png https://github.com/Robpol86/terminaltables/issues/30
5 changes: 5 additions & 0 deletions docs/changelog.rst
@@ -0,0 +1,5 @@
.. _changelog:

.. include:: ../README.rst
:start-after: changelog-section-start
:end-before: changelog-section-end
3 changes: 0 additions & 3 deletions docs/conf.py
Expand Up @@ -4,8 +4,6 @@
import time
from subprocess import check_output

import sphinx_rtd_theme

SETUP = os.path.join(os.path.dirname(__file__), '..', 'setup.py')


Expand All @@ -32,7 +30,6 @@
html_copy_source = False
html_favicon = 'favicon.ico'
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_title = project


Expand Down
9 changes: 6 additions & 3 deletions docs/index.rst
Expand Up @@ -48,9 +48,6 @@ Project Links
* Source code: https://github.com/Robpol86/terminaltables
* PyPI homepage: https://pypi.python.org/pypi/terminaltables

Contents
========

.. toctree::
:maxdepth: 2
:caption: General
Expand All @@ -68,6 +65,12 @@ Contents
doubletable
githubtable

.. toctree::
:maxdepth: 1
:caption: Appendix

changelog

.. _colorclass: https://github.com/Robpol86/colorclass
.. _colorama: https://github.com/tartley/colorama
.. _termcolor: https://pypi.python.org/pypi/termcolor
Expand Down
Binary file added docs/key.enc
Binary file not shown.
1 change: 1 addition & 0 deletions tests/test_all_tables_e2e/test_ascii_table.py
Expand Up @@ -100,6 +100,7 @@ def test_multi_line():


@pytest.mark.skipif(str(not IS_WINDOWS))
@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
def test_windows_screenshot(tmpdir):
"""Test on Windows in a new console window. Take a screenshot to verify it works.
Expand Down
1 change: 1 addition & 0 deletions tests/test_all_tables_e2e/test_double_table.py
Expand Up @@ -200,6 +200,7 @@ def test_multi_line():


@pytest.mark.skipif(str(not IS_WINDOWS))
@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
def test_windows_screenshot(tmpdir):
"""Test on Windows in a new console window. Take a screenshot to verify it works.
Expand Down
1 change: 1 addition & 0 deletions tests/test_all_tables_e2e/test_single_table_windows.py
Expand Up @@ -201,6 +201,7 @@ def test_multi_line():


@pytest.mark.skipif(str(not IS_WINDOWS))
@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
def test_windows_screenshot(tmpdir):
"""Test on Windows in a new console window. Take a screenshot to verify it works.
Expand Down
1 change: 1 addition & 0 deletions tests/test_terminal_io/test_set_terminal_title.py
Expand Up @@ -54,6 +54,7 @@ def test(monkeypatch, is_windows, mode):


@pytest.mark.skipif(str(not IS_WINDOWS))
@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
@pytest.mark.parametrize('mode', ['ascii', 'unicode', 'bytes'])
def test_windows_screenshot(tmpdir, mode):
"""Test function on Windows in a new console window. Take a screenshot to verify it works.
Expand Down
13 changes: 13 additions & 0 deletions tox.ini
Expand Up @@ -69,6 +69,19 @@ deps =
Sphinx==1.4.2
sphinx-rtd-theme==0.1.9

[testenv:docsV]
commands =
sphinx-versioning -t -S semver,chrono -e .gitignore -e .nojekyll -e README.rst push gh-pages . docs -- -W
deps =
{[testenv:docs]deps}
sphinxcontrib-versioning==1.0.0
passenv =
HOME
HOSTNAME
SSH_AUTH_SOCK
TRAVIS*
USER

[flake8]
exclude = .tox/*,build/*,docs/*,env/*,get-pip.py
ignore = D203,E731
Expand Down

0 comments on commit 2f083ee

Please sign in to comment.