mirror of https://gitlab.com/litecord/litecord.git
first try at a gitlab ci config
- Pipfile: update asyncpg from 0.16.0 to 0.18.2
This commit is contained in:
parent
fb6a31a377
commit
e7c51381e3
|
|
@ -0,0 +1,17 @@
|
||||||
|
image: python:3.7-alpine
|
||||||
|
|
||||||
|
services:
|
||||||
|
- postgres:alpine
|
||||||
|
|
||||||
|
tests:
|
||||||
|
before_script:
|
||||||
|
- python -V
|
||||||
|
- apk --update add --no-cache --virtual .build_deps build-base python3.7-dev gcc libgcc
|
||||||
|
- pip3 install pipenv wheel tox
|
||||||
|
- pipenv install --dev
|
||||||
|
script:
|
||||||
|
- ls
|
||||||
|
- cp config.ci.py config.py
|
||||||
|
- pipenv run ./manage.py migrate
|
||||||
|
- pipenv run ./manage.py setup_tests
|
||||||
|
- tox
|
||||||
2
Pipfile
2
Pipfile
|
|
@ -6,7 +6,7 @@ name = "pypi"
|
||||||
[packages]
|
[packages]
|
||||||
bcrypt = "==3.1.4"
|
bcrypt = "==3.1.4"
|
||||||
itsdangerous = "==0.24"
|
itsdangerous = "==0.24"
|
||||||
asyncpg = "==0.16.0"
|
asyncpg = "==0.18.2"
|
||||||
websockets = "==6.0"
|
websockets = "==6.0"
|
||||||
Earl-ETF = "==2.1.2"
|
Earl-ETF = "==2.1.2"
|
||||||
logbook = "==1.4.0"
|
logbook = "==1.4.0"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
MODE = 'CI'
|
||||||
|
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
"""Default configuration values for litecord."""
|
||||||
|
# Enable debug logging?
|
||||||
|
DEBUG = False
|
||||||
|
|
||||||
|
# Enable ssl? (gives wss:// instead of ws:// on gateway route)
|
||||||
|
IS_SSL = False
|
||||||
|
|
||||||
|
# what to give on gateway route?
|
||||||
|
# this must point to the websocket.
|
||||||
|
|
||||||
|
# Set this url to somewhere *your users*
|
||||||
|
# will hit the websocket.
|
||||||
|
# e.g 'gateway.example.com' for reverse proxies.
|
||||||
|
WEBSOCKET_URL = 'localhost:5001'
|
||||||
|
|
||||||
|
# Where to host the websocket?
|
||||||
|
# (a local address the server will bind to)
|
||||||
|
WS_HOST = 'localhost'
|
||||||
|
WS_PORT = 5001
|
||||||
|
|
||||||
|
# Postgres credentials
|
||||||
|
POSTGRES = {}
|
||||||
|
|
||||||
|
|
||||||
|
class Development(Config):
|
||||||
|
DEBUG = True
|
||||||
|
POSTGRES = {
|
||||||
|
'host': 'localhost',
|
||||||
|
'user': 'litecord',
|
||||||
|
'password': '123',
|
||||||
|
'database': 'litecord',
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class Production(Config):
|
||||||
|
DEBUG = False
|
||||||
|
IS_SSL = True
|
||||||
|
|
||||||
|
|
||||||
|
class CI(Config):
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
|
POSTGRES = {
|
||||||
|
'host': 'postgres',
|
||||||
|
'user': 'postgres',
|
||||||
|
'password': ''
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue