Pasando a utilizar flake8, es mas rapido y confiable

This commit is contained in:
Daniel Cortes
2020-06-11 04:59:06 -04:00
parent 1d4c5f28ac
commit 83c095e4ec
8 changed files with 17 additions and 28 deletions

View File

@@ -1,20 +1,20 @@
image: python:latest
stages:
- test
- deploy
- Analisis Estatico
- Deploy
before_script:
- apt-get update -y && apt-get upgrade -y
test:
stage: test
stage: Analisis Estatico
script:
- pip install -r requirements.txt -r requirements-dev.txt
- ./lint.sh
- flake8 .
deploy:
stage: deploy
stage: Deploy
script:
## Install ssh-agent if not already installed
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client git -y )'
@@ -37,4 +37,3 @@ deploy:
- apt-get install rsync -y
- rsync -rvz ./ deployer@142.93.158.54:/var/www/musiclist.danielcortes.xyz/server/
- ssh deployer@142.93.158.54 'cd /var/www/musiclist.danielcortes.xyz/server/; sh deploy.sh'