Trying some new things with the gitlab.yml file, also removing pylint from requirements.txt so it is only instlled during testing

This commit is contained in:
Luke Robles 2018-06-13 10:46:33 -07:00
parent 699b27c8d4
commit 6fae7acf11
3 changed files with 7 additions and 9 deletions

View File

@ -4,22 +4,20 @@ services:
before_script: before_script:
- apk add --no-cache python3 - apk add --no-cache python3
- pip3 install -r app/requirements.txt
stages: stages:
- test - linting
- deploy - deploy
linting_python: linting:
stage: test stage: linting
before_script:
- pip3 install pylint
script: script:
- pylint -E app/*.py - pylint -E app/*.py
only:
- /.*/
tags:
- docker
build_and_push_container: build_and_push_container:
- pip3 install -r app/requirements.txt
stage: deploy stage: deploy
script: script:
- docker login -u ldooks -p $DOCKER_PASSWORD - docker login -u ldooks -p $DOCKER_PASSWORD

View File

@ -3,6 +3,7 @@ ADD app/requirements.txt /requirements.txt
RUN apk update && \ RUN apk update && \
apk add --no-cache vim docker && \ apk add --no-cache vim docker && \
pip install -U pip && \ pip install -U pip && \
pip install pylint && \
pip install -r requirements.txt pip install -r requirements.txt
ADD app /app ADD app /app

View File

@ -2,7 +2,6 @@ beautifulsoup4
discord.py discord.py
docker docker
gTTS gTTS
pylint
pyowm pyowm
requests requests
wikipedia wikipedia