summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Withers <chris@simplistix.co.uk>2019-04-30 21:16:04 +0100
committerChris Withers <chris@withers.org>2019-05-02 09:00:35 +0100
commit9ed4bcd1538445c9ff780f18f77531b2a88a4e96 (patch)
tree248ca4111bb5fea959dbe5a48c8acb19019ea78e
parent0867420f6a299e69bc39d3b5127e405905ccfe28 (diff)
downloadmock-9ed4bcd1538445c9ff780f18f77531b2a88a4e96.tar.gz
Circle CI config
-rw-r--r--.circleci/config.yml82
-rw-r--r--.travis.yml24
2 files changed, 82 insertions, 24 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..2febe1c
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,82 @@
+version: 2.1
+
+orbs:
+ python: cjw296/python-ci@1.3
+
+jobs:
+ docs:
+ docker:
+ - image: circleci/python:3.7
+ steps:
+ - checkout
+ - run:
+ name: "Install Project"
+ command: "sudo pip install -e .[docs]"
+ - run:
+ name: "Build Docs"
+ command: |
+ python setup.py build_sphinx
+ rst2html.py --strict README.rst README.html
+
+
+common: &common
+ jobs:
+ - python/pip-run-tests:
+ name: python27
+ image: circleci/python:2.7
+ - python/pip-run-tests:
+ name: python34
+ image: circleci/python:3.4
+ - python/pip-run-tests:
+ name: python35
+ image: circleci/python:3.5
+ - python/pip-run-tests:
+ name: python36
+ image: circleci/python:3.6
+ - python/pip-run-tests:
+ name: python37
+ image: circleci/python:3.7
+ - python/pip-run-tests:
+ name: pypy27
+ image: pypy:2.7
+ sudo: false
+ - python/pip-run-tests:
+ name: pypy36
+ image: pypy:3.6
+ sudo: false
+
+ - python/coverage:
+ name: coverage
+ requires:
+ - python27
+ - python34
+ - python35
+ - python36
+ - python37
+ - pypy27
+ - pypy36
+
+ - docs:
+ requires:
+ - coverage
+
+ - python/release:
+ name: release
+ config: .carthorse.yml
+ requires:
+ - docs
+ filters:
+ branches:
+ only: master
+
+workflows:
+ push:
+ <<: *common
+ periodic:
+ <<: *common
+ triggers:
+ - schedule:
+ cron: "0 1 * * *"
+ filters:
+ branches:
+ only: master
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 2764b96..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: python
-python:
- - "2.7"
- - "3.4"
- - "3.5"
- - "3.6"
- - pypy
- - pypy3
-matrix:
- include:
- - python: "3.7"
- dist: xenial
- - python: "nightly"
- dist: xenial
-install:
- - pip install -U pip
- - pip install -U wheel setuptools
- - pip install -U .[docs,test]
- - pip list
- - python --version
-script:
- - pytest
- - if [ -z "$SKIP_DOCS" ]; then python setup.py build_sphinx; fi
- - rst2html.py --strict README.rst README.html