EOX GitLab Instance

Commit 762f0fab authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Adding CI for test/deployment

parent 4c956e53
Pipeline #17409 failed with stages
in 1 minute and 20 seconds
stages:
- test
- deploy
test:
image: python:3.8-slim
stage: test
script:
- pip3 install -r requirements-test.txt
- pip3 install .
- pytest
deploy:
image: docker:20.10.8-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
stage: deploy
script:
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
only:
- tags
deploy-latest:
image: docker:20.10.8-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
stage: deploy
script:
- docker pull $CI_REGISTRY_IMAGE:latest
- docker build -t $CI_REGISTRY_IMAGE --cache-from $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
only:
- main
pytest
pytest-cov
......@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
long_description = ""
setup(
name="harvester",
name="harvester",
version="2.0.0-alpha.2",
author="",
author_email="",
......@@ -23,5 +23,12 @@ setup(
"console_scripts": [
"harvester = harvester.cli:cli",
],
}
},
install_requires=[
'boto3',
'botocore',
'pystac',
'pygeofilter',
'redis',
],
)
# TODO implement tests
def test_hello():
pass
Supports Markdown
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