Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
sudo: required
language: python
services:
- docker
jobs:
include:
- stage:
language: python
services:
docker
env:
- TOXENV=flake8
before_install: docker build -t axe-selenium-python .
install: skip
script:
- docker run -e TOXENV=$TOXENV axe-selenium-python tox
- stage:
language: python
services:
docker
env: TOXENV=py27
- stage:
env:
- TOXENV=py36
before_install: docker build -t axe-selenium-python .
install: skip
script:
- docker run -e TOXENV=$TOXENV axe-selenium-python tox
cache:
pip: true
before_install: docker build -t axe-selenium-python .
install: skip
script:
- docker run -e TOXENV=$TOXENV axe-selenium-python tox
notifications:
email: fte-ci@mozilla.com
17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ skipsdist = true
passenv = HOME DISPLAY MOZ_HEADLESS PYTEST_ADDOPTS PYTEST_BASE_URL \
SAUCELABS_USR SAUCELABS_PSW JENKINS_URL JOB_NAME BUILD_NUMBER
deps = -raxe_selenium_python/tests/requirements/tests.txt
commands = pytest \
--verbose \
--driver=SauceLabs \
--base-url=https://web-mozillians-staging.production.paas.mozilla.community
commands = pytest

[testenv:py27]
commands = pytest

[testenv:py36]
commands = pytest \
--verbose \
--driver=Firefox \
--base-url=https://web-mozillians-staging.production.paas.mozilla.community
commands = pytest

[testenv:flake8]
deps = -raxe_selenium_python/tests/requirements/flake8.txt
commands = flake8 {posargs:.}

[flake8]
ignore = E501

[pytest]
addopts = --verbose --driver=Firefox
base_url = https://web-mozillians-staging.production.paas.mozilla.community