Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 117ba99

Browse files
committed
CI: use circleci
1 parent 1ce5790 commit 117ba99

File tree

5 files changed

+72
-28
lines changed

5 files changed

+72
-28
lines changed

.circleci/config.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
version: 2.1
2+
3+
orbs:
4+
browser-tools: circleci/[email protected]
5+
6+
commands:
7+
run-tox:
8+
description: "Run tox"
9+
parameters:
10+
version:
11+
type: string
12+
sphinx-version:
13+
type: string
14+
default: "18,20,21,22,23,24,30,31,32,33,latest"
15+
steps:
16+
- browser-tools/install-browser-tools
17+
- checkout
18+
- run: pip install --user tox
19+
- run:
20+
name: Chrome driver
21+
command: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}" -- --driver Chrome
22+
- run:
23+
name: Firefox driver
24+
command: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}" -- --driver Firefox
25+
26+
jobs:
27+
py36:
28+
docker:
29+
- image: 'cimg/python:3.6-browsers'
30+
steps:
31+
- run-tox:
32+
version: py36
33+
py37:
34+
docker:
35+
- image: 'cimg/python:3.7-browsers'
36+
steps:
37+
- run-tox:
38+
version: py37
39+
py38:
40+
docker:
41+
- image: 'cimg/python:3.8-browsers'
42+
steps:
43+
- run-tox:
44+
version: py38
45+
py39:
46+
docker:
47+
- image: 'cimg/python:3.9-browsers'
48+
steps:
49+
- run-tox:
50+
version: py39
51+
52+
workflows:
53+
version: 2
54+
tests:
55+
jobs:
56+
- py39
57+
- py38
58+
- py37
59+
- py36

.travis.yml

-23
This file was deleted.

scripts/setup_chromedriver.sh

100644100755
File mode changed.

scripts/setup_geckodriver.sh

100644100755
+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
wget -N https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz -P ~/
2-
tar xvzf ~/geckodriver-v0.24.0-linux64.tar.gz -C ~/
3-
rm ~/geckodriver-v0.24.0-linux64.tar.gz
1+
VERSION=v0.28.0
2+
wget -N https://github.com/mozilla/geckodriver/releases/download/${VERSION}/geckodriver-${VERSION}-linux64.tar.gz -P ~/
3+
tar xvzf ~/geckodriver-${VERSION}-linux64.tar.gz -C ~/
4+
rm ~/geckodriver-${VERSION}-linux64.tar.gz
45
sudo mv -f ~/geckodriver /usr/local/bin/
56
sudo chmod +x /usr/local/bin/geckodriver

tox.ini

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[tox]
22
minversion = 3.10
33
envlist =
4-
py{36,37}-sphinx{18}
5-
py{36,37}-sphinx{20,21}
4+
py{36,37,38,39}-sphinx{18,20,21,22,23,24,30,31,32,33,latest}
65
docs
76
skipsdist = True
87

@@ -14,6 +13,14 @@ deps =
1413
sphinx18: Sphinx<1.9
1514
sphinx20: Sphinx<2.1
1615
sphinx21: Sphinx<2.2
16+
sphinx22: Sphinx<2.3
17+
sphinx23: Sphinx<2.4
18+
sphinx24: Sphinx<2.5
19+
sphinx30: Sphinx<3.1
20+
sphinx31: Sphinx<3.2
21+
sphinx32: Sphinx<3.3
22+
sphinx33: Sphinx<3.4
23+
sphinxlatest: Sphinx
1724
commands = pytest {posargs}
1825

1926
[testenv:docs]

0 commit comments

Comments
 (0)