neotags/.gitlab-ci.yml

31 lines
692 B
YAML
Raw Permalink Normal View History

2017-05-19 15:48:20 +02:00
stages:
- build
- test
build:image:
image: docker:git
stage: build
services:
- docker:dind
2017-05-19 15:48:20 +02:00
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/danielsiepmann/neotags .
2017-05-19 16:08:45 +02:00
- docker push registry.gitlab.com/danielsiepmann/neotags:latest
2020-04-24 12:04:48 +02:00
only:
changes:
- Dockerfile
2017-05-19 15:48:20 +02:00
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
script:
2020-04-27 11:16:33 +02:00
- pycodestyle --show-source --show-pep8 .
2017-05-19 15:13:22 +02:00
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:
- cd rplugin
script:
- python -m unittest test.test_neotags