Verified Commit 9c00cdba authored by Rigel Kent's avatar Rigel Kent
Browse files

💚 fixing build-be

parent 090627d2
Pipeline #157095 passed with stages
in 3 minutes and 45 seconds
DATABASE_URL="postgresql://olki@postgres/test_olki"
SECRET="ci"
......@@ -6,9 +6,9 @@
image: rigelk/olki-ci:p3.7n10
stages:
- build
- lint
- test
- build
variables:
POSTGRES_DB: test_olki
......@@ -20,12 +20,13 @@ variables:
## Jobs templates
#
.lints:
stage: test
except:
- schedules
.tests:
stage: test
variables:
# Note that any variable passed down to tox must be whitelisted
# in `olki_back/setup.cfg`'s passenv. Hence using a CI dotfile.
DOTFILE: '.env.ci'
except:
- schedules
......@@ -46,18 +47,14 @@ build:
- olki_front/dist/
.lint:
stage: lint
except:
- schedules
extends: .lints
script:
- make deps-dev-be
- poetry run therapist run lint-all
reuse:
extends: .lints
image: fsfe/reuse:latest
stage: lint
except:
- schedules
script:
- reuse lint
only:
......@@ -67,9 +64,7 @@ reuse:
allow_failure: true
.coverage:
stage: lint
except:
- schedules
extends: .lints
before_script:
- make deps-dev-be
script:
......@@ -84,11 +79,17 @@ back:
extends: .tests
services:
- postgres:11
variables:
# Note that any variable passed down to tox must be whitelisted
# in `olki_back/setup.cfg`'s passenv. Hence using a CI dotfile.
DOTFILE: '.env.ci'
before_script:
- cp -R /.venv .
# Switching to the cached virtualenv brought by the docker image
- source /.venv/bin/activate
# Dependencies actualisation
- make deps-dev-be
# Database migration
- make manage -- migrate
- ~/.poetry/bin/poetry config settings.virtualenvs.path .venv
script:
- make test-be-pytest-only
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment