neotags/.gitlab-ci.yml

34 lines
725 B
YAML
Raw Normal View History

2017-05-19 15:48:20 +02:00
stages:
- build
- test
build:image:
image: docker:git
stage: build
services:
- 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
2017-05-19 15:13:22 +02:00
lint:coding-guideline:
2017-05-19 15:48:20 +02:00
image: 'registry.gitlab.com/danielsiepmann/neotags:latest'
stage: test
2017-05-19 15:13:22 +02:00
before_script:
- pip install pep8
script:
- pep8 .
test:
2017-05-19 15:48:20 +02:00
image: 'registry.gitlab.com/danielsiepmann/neotags:latest'
stage: test
2017-05-19 15:13:22 +02:00
before_script:
- apk add --no-cache gcc
2017-05-19 15:13:22 +02:00
- pip install neovim
- cd rplugin
script:
- python -m unittest test.test_neotags