feat: se fuerza flake8 en tdd

This commit is contained in:
Jovany Leandro G.C bit4bit@riseup.net 2023-08-03 16:05:45 -05:00
parent 1453766396
commit dc649a80b5
2 changed files with 11 additions and 3 deletions

View File

@ -2,6 +2,12 @@
# variables que puedo usar? https://woodpecker-ci.org/docs/0.15/usage/environment#built-in-environment-variables
pipeline:
style:
image: python:3.9
commands:
- pip3 install flake8
- flake8
tests:
image: python:3.9
environment:

View File

@ -12,8 +12,10 @@ end
desc 'poblar entorno'
task :init => [:up] do
pecker = YAML.load_file(WOODPECKER_YML)
pecker.dig('pipeline', 'tests', 'commands').grep(/install/).each do |cmd|
compose('exec', 'app.dev', cmd)
['tests', 'style'].each do |pipeline|
pecker.dig('pipeline', pipeline, 'commands').grep(/install/).each do |cmd|
compose('exec', 'app.dev', cmd)
end
end
compose('exec', 'app.dev', 'bash .dev/install_module.sh')
end
@ -45,7 +47,7 @@ task :tdd do
end
end
end
compose('exec', 'app.dev', 'flake8 --exclude .git,__pycache__,docs/source/conf.py,old,build,dist,.dev')
compose('exec', 'app.dev', 'python3 -m unittest')
end