-
Notifications
You must be signed in to change notification settings - Fork 46
/
.woodpecker.yml
53 lines (49 loc) · 1.41 KB
/
.woodpecker.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
services:
postgres:
image: postgres:14
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
image: redis
steps:
test-server:
image: python:3.10
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
- DJANGO_SETTINGS_MODULE=config.settings.local
- DJANGO_ALLOWED_HOSTS=*
- DJANGO_SECURE_SSL_REDIRECT=False
- SOCIALHOME_DOMAIN=127.0.0.1:8000
- SOCIALHOME_HTTPS=False
- DJANGO_DEBUG=False
- DJANGO_DEBUG_TOOLBAR=False
- DJANGO_SECRET_KEY=foobar"
- REDIS_HOST=redis
- REDIS_PORT=6379
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- SOCIALHOME_MATRIX_ENABLED=True
commands:
- python -V
- pip install virtualenv
- virtualenv venv
- . venv/bin/activate
- pip install -U pip-tools pip setuptools
- pip-sync dev-requirements.txt
- python manage.py migrate --noinput -v 0
- python manage.py collectstatic --noinput -v 0
- pip freeze
- python manage.py print_settings
- pytest
test-frontend-unit:
image: node:12
commands:
- npm install --ignore-scripts
- node_modules/.bin/bower install --allow-root
- npm i --prefix=socialhome/frontend
- npm rebuild node-sass
- npm run build
- npm run test:unit