Pasando a utilizar flake8, es mas rapido y confiable
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user