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

View file

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