add hidden files
This commit is contained in:
parent
84288dd615
commit
321effcd04
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.git/
|
||||||
|
*.md
|
||||||
|
LICENSE
|
||||||
|
Dockerfile
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.idea/
|
21
.travis.yml
Normal file
21
.travis.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
language: python
|
||||||
|
dist: bionic
|
||||||
|
cache: pip
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip3 install pylint bandit mccabe
|
||||||
|
- pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
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:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build -t="$TRAVIS_REPO_SLUG:$TRAVIS_BUILD_NUMBER" . && docker push "$TRAVIS_REPO_SLUG:$TRAVIS_BUILD_NUMBER"
|
||||||
|
- docker build -t="$TRAVIS_REPO_SLUG" . && docker push "$TRAVIS_REPO_SLUG"
|
Loading…
Reference in New Issue
Block a user