From e2b10425ef2fd95d365c78e303af81ecc849040f Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Wed, 25 Nov 2020 18:51:19 -0500 Subject: [PATCH] CI: switch to circleci (#1020) --- .circleci/config.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 15 ------------ README.rst | 4 ++-- tox.ini | 8 +------ 4 files changed, 57 insertions(+), 24 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..c4bd3ccab --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,54 @@ +version: 2.1 + +commands: + run-tox: + description: "Run tox" + parameters: + version: + type: string + steps: + - checkout + - run: pip install --user tox + - run: tox -e "<>-sphinx{16,17,18,20,21,22,23,24,30,31,32}" + +jobs: + py27: + docker: + - image: 'cimg/python:2.7' + steps: + - run-tox: + version: py27 + py36: + docker: + - image: 'cimg/python:3.6' + steps: + - run-tox: + version: py36 + py37: + docker: + - image: 'cimg/python:3.7' + steps: + - run-tox: + version: py37 + py38: + docker: + - image: 'cimg/python:3.8' + steps: + - run-tox: + version: py38 + py39: + docker: + - image: 'cimg/python:3.9' + steps: + - run-tox: + version: py39 + +workflows: + version: 2 + tests: + jobs: + - py39 + - py38 + - py37 + - py36 + - py27 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3c2fc65e2..000000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python -python: - - 2.7 - - 3.6 - - 3.7 - - 3.8 -install: - - pip install tox-travis - - pip install sphinx -script: - - tox - -branches: - only: - - master diff --git a/README.rst b/README.rst index 4c7f6db27..dcc8078b0 100644 --- a/README.rst +++ b/README.rst @@ -5,9 +5,9 @@ Read the Docs Sphinx Theme .. image:: https://img.shields.io/pypi/v/sphinx_rtd_theme.svg :target: https://pypi.python.org/pypi/sphinx_rtd_theme :alt: Pypi Version -.. image:: https://travis-ci.org/readthedocs/sphinx_rtd_theme.svg?branch=master - :target: https://travis-ci.org/readthedocs/sphinx_rtd_theme +.. image:: https://circleci.com/gh/readthedocs/sphinx_rtd_theme.svg?style=svg :alt: Build Status + :target: https://circleci.com/gh/readthedocs/sphinx_rtd_theme .. image:: https://img.shields.io/pypi/l/sphinx_rtd_theme.svg :target: https://pypi.python.org/pypi/sphinx_rtd_theme/ :alt: License diff --git a/tox.ini b/tox.ini index dafec6eff..fcc2524b9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,5 @@ [tox] -envlist = py{27,36,37,38}-sphinx{16,17,18,20,21,22,23,24,30,31,32} - -[tox:travis] -2.7 = py27-sphinx{16,17,18,20,21,22,23,24,30,31,32} -3.6 = py36-sphinx{16,17,18,20,21,22,23,24,30,31,32} -3.7 = py37-sphinx{16,17,18,20,21,22,23,24,30,31,32} -3.8 = py38-sphinx{16,17,18,20,21,22,23,24,30,31,32} +envlist = py{27,36,37,38,39}-sphinx{16,17,18,20,21,22,23,24,30,31,32} [testenv] setev =