-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcircle.yml
53 lines (41 loc) · 1.16 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: 2.1
orbs:
browser-tools: circleci/[email protected]
jobs:
build:
working_directory: ~/elections
docker:
- image: cimg/python:3.11.10-browsers
environment:
DATABASE_URL: postgres://circleci:@127.0.0.1:5432/elections_test
REDIS_URL: redis://127.0.0.1:6379/0
- image: cimg/postgres:13.5
environment:
- POSTGRES_USER=circleci
- POSTGRES_DB=elections_test
- POSTGRES_HOST_AUTH_METHOD=trust
- image: redis
steps:
- browser-tools/install-firefox
- browser-tools/install-geckodriver
- checkout
- run:
name: Checking system dependencies
command: make doctor
- restore_cache:
key: poetry-{{ checksum "poetry.lock" }}
- run:
name: Installing project dependencies
command: make install
- save_cache:
key: poetry-{{ checksum "poetry.lock" }}
paths:
- .venv
- run:
name: Running linters
command: make check
- run:
name: Running tests
command: make test
- store_artifacts:
path: htmlcov