Install python dependencies in docker image
This commit is contained in:
parent
18495e17bc
commit
84d4bf35ef
2 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue