Commit 90851844 authored by Alex Thomae's avatar Alex Thomae

Adds missing dependency `toml`

Also adds simple test job
parent f22b2402
......@@ -5,3 +5,12 @@ variables:
include:
- remote: https://gitlab.com/ix.ai/ci-templates/raw/master/python-project.yml
test:
stage: test
image: python:latest
variables:
TEST: 'true'
script:
- pip3 install --no-cache-dir -r src/requirements.txt
- python3 src/${CI_PROJECT_NAME}.py
......@@ -3,3 +3,4 @@ prometheus_client
pygelf
stellar-base
stellar-sdk
toml
......@@ -100,6 +100,8 @@ if __name__ == '__main__':
PORT = int(os.environ.get('PORT', 9308))
LOG.info("Starting on port {}".format(PORT))
REGISTRY.register(StellarCollector())
start_http_server(PORT)
while True:
time.sleep(1)
TEST = os.environ.get('TEST', False)
if not TEST:
start_http_server(PORT)
while True:
time.sleep(1)
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