Install python dependencies in docker image

This commit is contained in:
Daniel Siepmann 2017-05-19 15:52:19 +02:00
parent 18495e17bc
commit 84d4bf35ef
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 6 additions and 7 deletions

View file

@ -6,19 +6,17 @@ build:image:
image: docker:git
stage: build
services:
- docker:dind
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/danielsiepmann/neotags .
- docker push registry.gitlab.com/neotags/neotags:latest
only:
- master
# only:
# - master
lint:coding-guideline:
image: 'registry.gitlab.com/danielsiepmann/neotags:latest'
stage: test
before_script:
- pip install pep8
script:
- pep8 .
@ -26,8 +24,6 @@ test:
image: 'registry.gitlab.com/danielsiepmann/neotags:latest'
stage: test
before_script:
- apk add --no-cache gcc
- pip install neovim
- cd rplugin
script:
- python -m unittest test.test_neotags

View file

@ -10,3 +10,6 @@ RUN apk add python3 py-pip
# Clean APK cache
RUN rm -rf /var/cache/apk/*
# Install dependencies
RUN pip install pep8 neovim