Skip to content

Commit 1f85f6f

Browse files
authored
Migrate to CircleCI (#216)
1 parent f0b9550 commit 1f85f6f

File tree

10 files changed

+181
-44
lines changed

10 files changed

+181
-44
lines changed

.circleci/config.yml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
version: 2
2+
workflows:
3+
version: 2
4+
test:
5+
jobs:
6+
- test-3.4-18
7+
- test-3.4-19
8+
- test-3.4-110
9+
- test-3.4-111
10+
11+
- test-3.5-18
12+
- test-3.5-19
13+
- test-3.5-110
14+
- test-3.5-111
15+
16+
- test-3.6-18
17+
- test-3.6-19
18+
- test-3.6-110
19+
- test-3.6-111
20+
21+
- test-3.7-18
22+
- test-3.7-19
23+
- test-3.7-110
24+
- test-3.7-111
25+
jobs:
26+
base: &test-template
27+
docker:
28+
- image: circleci/python:3.4-stretch-node
29+
working_directory: ~/repo
30+
steps:
31+
- checkout
32+
- run:
33+
name: python version
34+
command: python --version
35+
36+
- restore_cache:
37+
keys:
38+
- v1-js
39+
- restore_cache:
40+
keys:
41+
- v1-py
42+
43+
- run:
44+
name: JS deps
45+
command: cd tests && yarn
46+
- save_cache:
47+
paths:
48+
- ./npm
49+
key: v1-js
50+
51+
- run:
52+
name: setup python
53+
command: |
54+
python3 -m venv venv
55+
source venv/bin/activate
56+
rm -f requirements.txt
57+
pip install -r tests/requirements/common.txt
58+
pip install -r tests/requirements/django${DJANGO_VERSION}.txt
59+
- save_cache:
60+
paths:
61+
- ./cache/pip
62+
key: v1-py
63+
64+
- run:
65+
name: Run tests
66+
command: |
67+
source venv/bin/activate
68+
cd tests
69+
coverage run --source=webpack_loader manage.py test
70+
test-3.4-18:
71+
<<: *test-template
72+
docker:
73+
- image: circleci/python:3.4-stretch-node
74+
environment:
75+
DJANGO_VERSION: "18"
76+
test-3.4-19:
77+
<<: *test-template
78+
docker:
79+
- image: circleci/python:3.4-stretch-node
80+
environment:
81+
DJANGO_VERSION: "19"
82+
test-3.4-110:
83+
<<: *test-template
84+
docker:
85+
- image: circleci/python:3.4-stretch-node
86+
environment:
87+
DJANGO_VERSION: "110"
88+
test-3.4-111:
89+
<<: *test-template
90+
docker:
91+
- image: circleci/python:3.4-stretch-node
92+
environment:
93+
DJANGO_VERSION: "111"
94+
95+
test-3.5-18:
96+
<<: *test-template
97+
docker:
98+
- image: circleci/python:3.5-stretch-node
99+
environment:
100+
DJANGO_VERSION: "18"
101+
test-3.5-19:
102+
<<: *test-template
103+
docker:
104+
- image: circleci/python:3.5-stretch-node
105+
environment:
106+
DJANGO_VERSION: "19"
107+
test-3.5-110:
108+
<<: *test-template
109+
docker:
110+
- image: circleci/python:3.5-stretch-node
111+
environment:
112+
DJANGO_VERSION: "110"
113+
test-3.5-111:
114+
<<: *test-template
115+
docker:
116+
- image: circleci/python:3.5-stretch-node
117+
environment:
118+
DJANGO_VERSION: "111"
119+
120+
test-3.6-18:
121+
<<: *test-template
122+
docker:
123+
- image: circleci/python:3.6-stretch-node
124+
environment:
125+
DJANGO_VERSION: "18"
126+
test-3.6-19:
127+
<<: *test-template
128+
docker:
129+
- image: circleci/python:3.6-stretch-node
130+
environment:
131+
DJANGO_VERSION: "19"
132+
test-3.6-110:
133+
<<: *test-template
134+
docker:
135+
- image: circleci/python:3.6-stretch-node
136+
environment:
137+
DJANGO_VERSION: "110"
138+
test-3.6-111:
139+
<<: *test-template
140+
docker:
141+
- image: circleci/python:3.6-stretch-node
142+
environment:
143+
DJANGO_VERSION: "111"
144+
145+
test-3.7-18:
146+
<<: *test-template
147+
docker:
148+
- image: circleci/python:3.7-stretch-node
149+
environment:
150+
DJANGO_VERSION: "18"
151+
test-3.7-19:
152+
<<: *test-template
153+
docker:
154+
- image: circleci/python:3.7-stretch-node
155+
environment:
156+
DJANGO_VERSION: "19"
157+
test-3.7-110:
158+
<<: *test-template
159+
docker:
160+
- image: circleci/python:3.7-stretch-node
161+
environment:
162+
DJANGO_VERSION: "110"
163+
test-3.7-111:
164+
<<: *test-template
165+
docker:
166+
- image: circleci/python:3.7-stretch-node
167+
environment:
168+
DJANGO_VERSION: "111"

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# django-webpack-loader
22

33
[![Join the chat at https://gitter.im/owais/django-webpack-loader](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/owais/django-webpack-loader?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
[![Build Status](https://travis-ci.org/owais/django-webpack-loader.svg?branch=master)](https://travis-ci.org/owais/django-webpack-loader)
4+
[![Build Status](https://circleci.com/gh/owais/django-webpack-loader/tree/master.svg?style=svg)](https://circleci.com/gh/owais/django-webpack-loader/tree/master)
55
[![Coverage Status](https://coveralls.io/repos/owais/django-webpack-loader/badge.svg?branch=master&service=github)](https://coveralls.io/github/owais/django-webpack-loader?branch=master)
66

77
<br>

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Django==1.10.1
33
django-jinja==2.2.1
44
django-jinja2==0.1
55
unittest2==1.1.0
6+
wheel==0.30.0

tests/requirements/common.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage>=4.5.4
2+
coveralls>=1.10.0
3+
unittest2>=1.1.0

tests/requirements/django110.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
django>=1.10,<1.11
2+
django_jinja>=2.0

tests/requirements/django111.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
django>=1.11,<1.12
2+
django_jinja>=2.0

tests/requirements/django18.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
django>=1.8,<1.9.0
2+
django_jinja>=2.0

tests/requirements/django19.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
django>=1.9,<1.10
2+
django_jinja>=2.0

tests/tox.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
minversion = 1.6
33
skipsdist = True
44
envlist =
5-
py26-django16
6-
py27-django{16,17,18,19,110,111}
75
py33-django{17,18}
86
py34-django{17,18,19,110,111}
97
py35-django{18,19,110,111}
108

119
[testenv]
1210
basepython =
13-
py26: python2.6
14-
py27: python2.7
1511
py33: python3.3
1612
py34: python3.4
1713
py35: python3.5

0 commit comments

Comments
 (0)