EOX GitLab Instance

Commit cfe8e111 authored by Nikola Jankovic's avatar Nikola Jankovic 💻
Browse files

added ci stuff

parent 17aa97e3
Pipeline #17431 passed with stages
in 2 minutes and 18 seconds
# Temporary and binary files
*~
*.py[cod]
*.so
*.cfg
!.isort.cfg
!setup.cfg
*.orig
*.log
*.pot
__pycache__/*
.cache/*
.*.swp
*/.ipynb_checkpoints/*
.DS_Store
.pylintrc
# Project files
.ropeproject
.project
.pydevproject
.settings
.idea
.vscode
tags
# Package files
*.egg
*.eggs/
.installed.cfg
*.egg-info
# Unittest and coverage
htmlcov/*
.coverage
.coverage.*
.tox
junit*.xml
coverage.xml
.pytest_cache/
# Build and docs folder/files
build/*
dist/*
sdist/*
docs/api/*
docs/_rst/*
docs/_build/*
cover/*
MANIFEST
# Per-project virtualenvs
.venv*/
.conda*/
stages:
- test
- deploy
variables:
DOCKER_TLS_CERTDIR: ""
test:
image: python:3.8-slim
stage: test
script:
- python3 setup.py install
- pip3 install -r requirements-test.txt
- pytest
deploy_latest:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: deploy
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:latest
except:
- tags
deploy:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: deploy
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
only:
- tags
# scheduler
Scheduler service of the View Server
pytest
pytest-cov
def test_sample():
assert True
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