Skip to content

Commit 081da19

Browse files
committed
Basic Config
1 parent d6e7591 commit 081da19

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

.circleci/config.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
1-
version: 2.1
2-
3-
orbs:
4-
python: circleci/python@0.2.1
1+
version: 2
52

63
jobs:
7-
build-and-test:
8-
executor: python/default
4+
build:
5+
docker:
6+
- image: circleci/python:3.6.2-stretch-browsers
7+
environment:
8+
SPURWING_PID: ${SPURWING_PID}
9+
SPURWING_KEY: ${SPURWING_KEY}
910
steps:
1011
- checkout
11-
- python/load-cache
12-
- python/install-deps
13-
- python/save-cache
12+
- restore_cache:
13+
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
1414
- run:
15-
command: ./manage.py test
16-
name: Test
15+
name: Install Python deps in a venv
16+
command: |
17+
python3 -m venv venv
18+
. venv/bin/activate
19+
pip install -r requirements.txt
20+
- save_cache:
21+
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
22+
paths:
23+
- "venv"
24+
- run:
25+
command: |
26+
. venv/bin/activate
27+
python spurwing/test_api.py
28+
- store_artifacts:
29+
path: test-reports/
30+
destination: tr1
31+
- store_test_results:
32+
path: test-reports/
1733

1834
workflows:
19-
main:
35+
build-and-test:
2036
jobs:
21-
- build-and-test
37+
- build

0 commit comments

Comments
 (0)