Skip to content

Commit 2452891

Browse files
committed
Fix typo; Add tests for docs
1 parent d8dcc92 commit 2452891

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

Diff for: .travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ before_script:
1515
- gem install travis-artifacts
1616
after_script:
1717
- travis-artifacts upload --path html --target-path ''
18+
- travis-artifacts upload --path *.png
19+
- travis-artifacts upload --path log.html
20+
- travis-artifacts upload --path report.html
21+
- travis-artifacts upload --path output.xml
1822
script:
1923
- grunt test$TARGET
2024
- grunt sphinx-build
25+
- grunt sphinx-test
2126
env:
2227
global:
2328
- ARTIFACTS_S3_BUCKET=citynavigator

Diff for: Gruntfile.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ module.exports = (grunt) ->
6868
command: 'bin/pybot -v REMOTE_URL:http://$SAUCE_USERNAME:[email protected]:80/wd/hub -v DESIRED_CAPABILITIES:tunnel-identifier:$TRAVIS_JOB_NUMBER -v BUILD_NUMBER:travis-$TRAVIS_BUILD_NUMBER tests'
6969
sphinx_build:
7070
command: 'bin/sphinx-build docs html'
71+
sphinx_test:
72+
command: 'bin/pybot docs'
7173
connect:
7274
server:
7375
options:
@@ -88,3 +90,4 @@ module.exports = (grunt) ->
8890
grunt.registerTask 'test-robot', ['coffee', 'connect', 'exec:robot']
8991
grunt.registerTask 'test-robot-desktop', ['coffee', 'connect', 'exec:robot_desktop']
9092
grunt.registerTask 'sphinx-build', ['coffee', 'connect', 'exec:sphinx_build']
93+
grunt.registerTask 'sphinx-test', ['coffee', 'connect', 'exec:sphinx_test']

Diff for: buildout.cfg

+29-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
11
[buildout]
2-
parts = scripts
2+
parts = sphinx-build pybot
3+
find-links =
4+
https://github.com/datakurre/robotframework/tarball/2.8.2rc0/robotframework-2.8.2rc0.tar.gz
5+
versions = versions
36

4-
[scripts]
7+
[versions]
8+
robotframework = 2.8.2rc0
9+
10+
[sphinx-build]
11+
recipe = zc.recipe.egg
12+
eggs =
13+
Sphinx
14+
robotframework
15+
sphinxcontrib-robotframework
16+
robotframework-selenium2screenshots
17+
scripts = phinx-build
18+
19+
[pybot]
520
recipe = zc.recipe.egg
621
eggs =
722
Sphinx
823
robotframework
924
sphinxcontrib-robotframework
1025
robotframework-selenium2screenshots
11-
scripts = pybot sphinx-build
26+
initialization =
27+
# This code hides warnings for missing Sphinx-only-directives:
28+
from docutils.parsers.rst.directives import register_directive
29+
from docutils.parsers.rst.roles import register_local_role
30+
dummy_directive = lambda *args: []
31+
options = ('maxdepth', 'creates', 'numbered', 'hidden')
32+
setattr(dummy_directive, 'content', True)
33+
setattr(dummy_directive, 'options', dict([(opt, str) for opt in options]))
34+
register_directive('toctree', dummy_directive)
35+
register_directive('robotframework', dummy_directive)
36+
register_local_role('ref', dummy_directive)
37+
scripts = pybot

Diff for: docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ And pick the right result form the list:
6767
... Click the result to see the available routes.
6868
... position=bottom width=300
6969
Capture page screenshot navigatorwindow-results.png
70-
Remote elements ${note}
70+
Remove elements ${note}
7171
7272
That's all! Now you are ready to navigate and have fun!
7373

0 commit comments

Comments
 (0)