Merge branch 'master' of gitlab.com:ldooks/dragon-bot

This commit is contained in:
Luke Robles 2017-12-16 18:40:34 -08:00
commit d5f0cd41dc
4 changed files with 16 additions and 9 deletions

View File

@ -4,7 +4,7 @@ services:
before_script:
- apk add --no-cache python3
- pip3 install pylint requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
- pip3 install -r app/requirements.txt
stages:
- test

View File

@ -1,8 +1,7 @@
FROM python:3.6.2-alpine3.6
LABEL name="Dragon Bot"
ADD app/requirements.txt /requirements.txt
RUN apk update && \
apk add --no-cache vim docker && \
pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
apk add --no-cache docker && \
pip install -r requirements.txt
ADD app /app
CMD python app/dragon-bot.py
CMD python /app/dragon-bot.py

View File

@ -1,10 +1,10 @@
FROM python:3.6.2-alpine3.6
LABEL name="Dragon Bot Test environment"
ADD app/requirements.txt /requirements.txt
RUN apk update && \
apk add --no-cache vim docker && \
pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
ADD app /app
pip install -r requirements.txt
ADD app /app
RUN printf "\n\nTesting your python code for errors\n\n" && \
pylint -E /app/*.py

8
app/requirements.txt Normal file
View File

@ -0,0 +1,8 @@
beautifulsoup4
discord.py
docker
pylint
pyowm
requests
wolframalpha
yahoo-finance