Skip to content

Commit bafb28e

Browse files
author
Matt Brandt
authored
Merge pull request #73 from stephendonner/py27-travis
Add Python 2.7 (py27) to Travis
2 parents 8b7b8ce + 58f8d6f commit bafb28e

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.travis.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
sudo: required
2+
language: python
3+
services:
4+
- docker
25
jobs:
36
include:
47
- stage:
5-
language: python
6-
services:
7-
docker
88
env:
99
- 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
1410
- stage:
15-
language: python
16-
services:
17-
docker
11+
env: TOXENV=py27
12+
- stage:
1813
env:
1914
- 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
15+
cache:
16+
pip: true
17+
before_install: docker build -t axe-selenium-python .
18+
install: skip
19+
script:
20+
- docker run -e TOXENV=$TOXENV axe-selenium-python tox
21+
notifications:
22+
email: fte-ci@mozilla.com

tox.ini

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ skipsdist = true
66
passenv = HOME DISPLAY MOZ_HEADLESS PYTEST_ADDOPTS PYTEST_BASE_URL \
77
SAUCELABS_USR SAUCELABS_PSW JENKINS_URL JOB_NAME BUILD_NUMBER
88
deps = -raxe_selenium_python/tests/requirements/tests.txt
9-
commands = pytest \
10-
--verbose \
11-
--driver=SauceLabs \
12-
--base-url=https://web-mozillians-staging.production.paas.mozilla.community
9+
commands = pytest
10+
11+
[testenv:py27]
12+
commands = pytest
1313

1414
[testenv:py36]
15-
commands = pytest \
16-
--verbose \
17-
--driver=Firefox \
18-
--base-url=https://web-mozillians-staging.production.paas.mozilla.community
15+
commands = pytest
1916

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

2421
[flake8]
2522
ignore = E501
23+
24+
[pytest]
25+
addopts = --verbose --driver=Firefox
26+
base_url = https://web-mozillians-staging.production.paas.mozilla.community

0 commit comments

Comments
 (0)