Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Javinator9889 <javialonso007@hotmail.es>
- Loading branch information
1 parent
2831b23
commit 530952f
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# https://hub.docker.com/r/library/python/tags/ | ||
image: python:latest | ||
|
||
# Change pip's cache directory to be inside the project directory since we can | ||
# only cache local items. | ||
variables: | ||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | ||
|
||
# Pip's cache doesn't store the python packages | ||
# https://pip.pypa.io/en/stable/reference/pip_install/#caching | ||
# | ||
# If you want to also cache the installed packages, you have to install | ||
# them in a virtualenv and cache it as well. | ||
cache: | ||
paths: | ||
- .cache/pip | ||
- venv/ | ||
|
||
before_script: | ||
- python -V # Print out python version for debugging | ||
- pip install pylint | ||
- pip install -R requirements.txt | ||
- cd YouTubeMDBot | ||
|
||
test:pylint: | ||
script: | ||
- pylint --ignored-classes=_socketobject *.py | ||
|
||
test: | ||
script: | ||
- python -m unittest $(pwd)/YouTubeMDBot/tests/*.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters