diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..42c81cd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: python +arch: arm64 +dist: focal +virt: vm +cache: pip + +services: + - docker + +before_install: + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com + +install: + - pip3 install pylint bandit mccabe + +before_script: + - find . -name "*.py" -exec python3 -m py_compile '{}' \; + - find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi + - find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi + - bandit -r . + +script: + - docker build -t="registry.kmlabz.com/$TRAVIS_REPO_SLUG:$TRAVIS_BUILD_NUMBER" . && docker push "registry.kmlabz.com/$TRAVIS_REPO_SLUG:$TRAVIS_BUILD_NUMBER" + - docker build -t="registry.kmlabz.com/$TRAVIS_REPO_SLUG" . && docker push "registry.kmlabz.com/$TRAVIS_REPO_SLUG" \ No newline at end of file diff --git a/README.md b/README.md index f17bf05..fda2620 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # webshop Webshop Application + +[![Build Status](https://travis-ci.com/UnstableVortexSecurity/webshop.svg?branch=main)](https://travis-ci.com/UnstableVortexSecurity/webshop) \ No newline at end of file diff --git a/src/utils/marshm.py b/src/utils/marshm.py deleted file mode 100644 index 146cdb0..0000000 --- a/src/utils/marshm.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python3 - -from flask_marshmallow import Marshmallow - -""" -Marshmallow -""" - -__author__ = '@tormakris' -__copyright__ = "Copyright 2020, UnstableVortex Team" -__module_name__ = "marshm" -__version__text__ = "1" - -ma = Marshmallow()