34 lines
550 B
YAML
34 lines
550 B
YAML
image: python:slim
|
|
|
|
variables:
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
|
|
lint:
|
|
stage: test
|
|
|
|
cache:
|
|
paths:
|
|
- .cache/pip
|
|
- .venv/
|
|
|
|
before_script:
|
|
- python --version
|
|
- python -m venv .venv
|
|
- source .venv/bin/activate
|
|
- pip install -r requirements-dev.txt -U
|
|
|
|
script:
|
|
- pylint $(find -type f -name "*.py" ! -path "./.venv/**" ! -path "./lib/**")
|
|
|
|
build:
|
|
stage: build
|
|
|
|
script:
|
|
- python --version
|
|
- python build.py
|
|
|
|
artifacts:
|
|
paths:
|
|
- malware_filter-*.tar.gz
|
|
expire_in: 30 days
|