Skip to content

Commit 8b7b8ce

Browse files
author
Matt Brandt
authored
Merge pull request #72 from kimberlythegeek/travis
@stephendonner a big thank you for the review. Merging
2 parents 64a5abc + 12aed73 commit 8b7b8ce

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

.travis.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
sudo: required
2-
language: python
3-
services:
4-
docker
5-
env:
6-
- TOXENV=flake8
7-
before_install: docker build -t axe-selenium-python .
8-
install: skip
9-
script:
10-
- docker run -e TOXENV=$TOXENV axe-selenium-python tox
2+
jobs:
3+
include:
4+
- stage:
5+
language: python
6+
services:
7+
docker
8+
env:
9+
- TOXENV=flake8
10+
before_install: docker build -t axe-selenium-python .
11+
install: skip
12+
script:
13+
- docker run -e TOXENV=$TOXENV axe-selenium-python tox
14+
- stage:
15+
language: python
16+
services:
17+
docker
18+
env:
19+
- TOXENV=py36
20+
before_install: docker build -t axe-selenium-python .
21+
install: skip
22+
script:
23+
- docker run -e TOXENV=$TOXENV axe-selenium-python tox

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ axe-selenium-python integrates aXe and selenium to enable automated web accessib
1111
.. image:: https://img.shields.io/pypi/v/axe-selenium-python.svg?style=for-the-badge
1212
:target: https://pypi.org/project/axe-selenium-python/
1313
:alt: PyPI
14+
.. image:: https://img.shields.io/travis/mozilla-services/axe-selenium-python.svg?style=for-the-badge
15+
:target: https://travis-ci.org/mozilla-services/axe-selenium-python
16+
:alt: Travis
1417
.. image:: https://img.shields.io/pypi/wheel/axe-selenium-python.svg?style=for-the-badge
1518
:target: https://pypi.org/project/axe-selenium-python/
1619
:alt: wheel

axe_selenium_python/tests/test_axe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_report(axe):
2626

2727
@pytest.mark.nondestructive
2828
def test_write_results(base_url, axe):
29-
"""Assert that write results method creates a file."""
29+
"""Assert that write results method creates a non-empty file."""
3030
axe.inject()
3131
data = axe.execute()
3232
filename = 'results.json'

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ commands = pytest \
1111
--driver=SauceLabs \
1212
--base-url=https://web-mozillians-staging.production.paas.mozilla.community
1313

14+
[testenv:py36]
15+
commands = pytest \
16+
--verbose \
17+
--driver=Firefox \
18+
--base-url=https://web-mozillians-staging.production.paas.mozilla.community
19+
1420
[testenv:flake8]
1521
deps = -raxe_selenium_python/tests/requirements/flake8.txt
1622
commands = flake8 {posargs:.}

0 commit comments

Comments
 (0)