Skip to content

Commit df2ac53

Browse files
committed
cicd: use machine
1 parent 9f22a4e commit df2ac53

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.circleci/config.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@ version: 2.1
22

33
jobs:
44
test:
5-
docker:
6-
- image: cimg/python:3.6.15
5+
machine:
6+
image: ubuntu-2004:2022.10.1
77
steps:
88
- checkout
99
- setup_remote_docker
1010
- run:
1111
name: Install deps
1212
command: poetry install
13+
- run:
14+
name: Spin up Pokeapi
15+
command: |
16+
git clone --recurse-submodules https://github.com/PokeAPI/pokeapi.git
17+
cd pokeapi
18+
docker-compose up -d
19+
docker-compose exec -T app python manage.py migrate --settings=config.docker-compose
20+
docker-compose exec -T app sh -c 'echo "from data.v2.build import build_all; build_all()" | python manage.py shell --settings=config.docker-compose'
21+
cd ..
22+
1323
# - run:
1424
# name: Clone data
1525
# command: poetry run ditto clone --dest-dir ./data

0 commit comments

Comments
 (0)