mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-26 05:10:21 +00:00
Merge branch 'master' into master
This commit is contained in:
commit
5b528d9e12
2 changed files with 26 additions and 1 deletions
|
@ -20,6 +20,25 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: make test
|
command: make test
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: cimg/python:3.10.9
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Pull Submodules
|
||||||
|
command: |
|
||||||
|
git submodule init
|
||||||
|
git submodule update --remote
|
||||||
|
- run:
|
||||||
|
name: Install deps
|
||||||
|
command: make install
|
||||||
|
- run:
|
||||||
|
name: Run migrations
|
||||||
|
command: make setup
|
||||||
|
- run:
|
||||||
|
name: Build database
|
||||||
|
command: make build-db
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
machine:
|
machine:
|
||||||
|
@ -44,9 +63,11 @@ workflows:
|
||||||
test-and-deploy:
|
test-and-deploy:
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
- deploy:
|
- deploy:
|
||||||
requires:
|
requires:
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@ -55,6 +76,7 @@ workflows:
|
||||||
weekly:
|
weekly:
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
- deploy:
|
- deploy:
|
||||||
requires:
|
requires:
|
||||||
- test
|
- test
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -18,6 +18,9 @@ dev-install: # Install developer requirements + base requirements
|
||||||
setup: # Set up the project database
|
setup: # Set up the project database
|
||||||
python manage.py migrate ${local_config}
|
python manage.py migrate ${local_config}
|
||||||
|
|
||||||
|
build-db: # Build database
|
||||||
|
echo "from data.v2.build import build_all; build_all()" | python manage.py shell ${local_config}
|
||||||
|
|
||||||
wipe-sqlite-db: # Delete's the project database
|
wipe-sqlite-db: # Delete's the project database
|
||||||
rm -rf db.sqlite3
|
rm -rf db.sqlite3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue