mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-17 21:18:27 +00:00
chore: enable build in circleci pipeline [skip ci]
This commit is contained in:
parent
6305602cb6
commit
adbf204c5f
1 changed files with 23 additions and 1 deletions
|
@ -20,6 +20,25 @@ jobs:
|
|||
- run:
|
||||
name: Run tests
|
||||
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:
|
||||
machine:
|
||||
|
@ -44,9 +63,11 @@ workflows:
|
|||
test-and-deploy:
|
||||
jobs:
|
||||
- test
|
||||
- build
|
||||
- deploy:
|
||||
requires:
|
||||
- test
|
||||
- build
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
|
@ -55,6 +76,7 @@ workflows:
|
|||
weekly:
|
||||
jobs:
|
||||
- test
|
||||
- build
|
||||
- deploy:
|
||||
requires:
|
||||
- test
|
||||
|
|
Loading…
Add table
Reference in a new issue