Skip to content

Commit

Permalink
initial circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw296 committed Mar 19, 2019
1 parent 8188db8 commit 52a0380
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: 2.1

orbs:
python: cjw296/[email protected]

jobs:
run-tests:
parameters:
python:
type: string
docker:
- image: circleci/python:<< parameters.python >>
steps:
- python/poetry-run-tests:
# prepare: << parameters.prepare >>
command: "poetry run coverage run -m twisted.trial tests"

common: &common
jobs:

- run-tests:
name: python27
python: "2.7"
- run-tests:
name: python36
python: "3.6"
- run-tests:
name: python37
python: "3.7"

- python/coverage:
name: coverage
requires:
- python27
- python36
- python37

- python/release:
name: release
requires:
- coverage
filters:
branches:
only: master

workflows:
push:
<<: *common
periodic:
<<: *common
triggers:
- schedule:
cron: "0 0 * * 6"
filters:
branches:
only: master

0 comments on commit 52a0380

Please sign in to comment.