Skip to content

Commit cd13fb3

Browse files
committed
Remove Travis CI, add CircleCI
1 parent 0e6448c commit cd13fb3

File tree

3 files changed

+129
-91
lines changed

3 files changed

+129
-91
lines changed

.circleci/config.yml

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
version: 2.0
2+
3+
4+
shared: &shared
5+
working_directory: /home/saltyrtc/saltyrtc-server-python
6+
7+
steps:
8+
- checkout
9+
- run:
10+
name: Install SaltyRTC Server
11+
command: |
12+
pip install --no-cache-dir .[dev];
13+
if [ "${EVENT_LOOP}" = "uvloop" ]; then
14+
pip install --no-cache-dir .[dev,uvloop];
15+
fi
16+
- run:
17+
name: Run tests
18+
command: |
19+
chown -R saltyrtc:saltyrtc /home/saltyrtc
20+
su saltyrtc -c "py.test \
21+
--cov-config=.coveragerc \
22+
--cov=saltyrtc.server \
23+
--loop=${EVENT_LOOP} \
24+
--timeout=${TIMEOUT}"
25+
- deploy:
26+
name: Upload Codecov
27+
command: codecov
28+
29+
30+
jobs:
31+
lint:
32+
docker:
33+
- image: saltyrtc/circleci-image-python:python-3.7
34+
steps:
35+
- checkout
36+
- run:
37+
name: Install SaltyRTC Server
38+
command: pip install .[dev]
39+
- run:
40+
name: Run Flake8
41+
command: flake8 .
42+
- run:
43+
name: Run isort
44+
command: isort -rc -c . || (isort -rc -df . && exit 1)
45+
- run:
46+
name: Run Mypy
47+
command: MYPYPATH=${PWD}/stubs mypy saltyrtc examples
48+
- run:
49+
name: Run checkdocs
50+
command: python setup.py checkdocs
51+
52+
test-python-3.7-asyncio:
53+
<<: *shared
54+
docker:
55+
- image: saltyrtc/circleci-image-python:python-3.7
56+
environment:
57+
- EVENT_LOOP: asyncio
58+
- TIMEOUT: "2.0"
59+
60+
test-python-3.7-uvloop:
61+
<<: *shared
62+
docker:
63+
- image: saltyrtc/circleci-image-python:python-3.7
64+
environment:
65+
- EVENT_LOOP: uvloop
66+
- TIMEOUT: "2.0"
67+
68+
test-python-3.6-asyncio:
69+
<<: *shared
70+
docker:
71+
- image: saltyrtc/circleci-image-python:python-3.6
72+
environment:
73+
- EVENT_LOOP: asyncio
74+
- TIMEOUT: "2.0"
75+
76+
test-python-3.6-uvloop:
77+
<<: *shared
78+
docker:
79+
- image: saltyrtc/circleci-image-python:python-3.6
80+
environment:
81+
- EVENT_LOOP: uvloop
82+
- TIMEOUT: "2.0"
83+
84+
test-python-3.5-asyncio:
85+
<<: *shared
86+
docker:
87+
- image: saltyrtc/circleci-image-python:python-3.5
88+
environment:
89+
- EVENT_LOOP: asyncio
90+
- TIMEOUT: "2.0"
91+
92+
test-python-3.5-uvloop:
93+
<<: *shared
94+
docker:
95+
- image: saltyrtc/circleci-image-python:python-3.5
96+
environment:
97+
- EVENT_LOOP: uvloop
98+
- TIMEOUT: "2.0"
99+
100+
test-pypy-3.6-asyncio:
101+
<<: *shared
102+
docker:
103+
- image: saltyrtc/circleci-image-python:pypy-3.6
104+
environment:
105+
- EVENT_LOOP: asyncio
106+
- TIMEOUT: "6.0"
107+
108+
test-pypy-3.5-asyncio:
109+
<<: *shared
110+
docker:
111+
- image: saltyrtc/circleci-image-python:pypy-3.5
112+
environment:
113+
- EVENT_LOOP: asyncio
114+
- TIMEOUT: "6.0"
115+
116+
117+
workflows:
118+
version: 2
119+
test:
120+
jobs:
121+
- lint
122+
- test-python-3.7-asyncio
123+
- test-python-3.7-uvloop
124+
- test-python-3.6-asyncio
125+
- test-python-3.6-uvloop
126+
- test-python-3.5-asyncio
127+
- test-python-3.5-uvloop
128+
- test-pypy-3.6-asyncio
129+
- test-pypy-3.5-asyncio

.coveragerc

-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ exclude_lines =
1111
ignore_errors = True
1212
omit =
1313
tests/*
14-

.travis.yml

-90
This file was deleted.

0 commit comments

Comments
 (0)