Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Commit 5e66b08

Browse files
committed
Switches to the ix.ai standards
* Adds LICENSE * Uses https://tool.ix.ai/.pylintrc * Triggers the build pipeline on latest and tags only * Adds usable information in README.md
1 parent dc413b3 commit 5e66b08

File tree

6 files changed

+54
-501
lines changed

6 files changed

+54
-501
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
variables:
22
DOCKER_DRIVER: overlay2
3+
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
34

45
stages:
56
- lint
@@ -12,16 +13,16 @@ pylint:
1213
image: python:latest
1314
stage: lint
1415
script:
16+
- curl -o .pylintrc https://tool.ix.ai/.pylintrc
1517
- pip install prometheus_client pylint requests
16-
- pylint --rcfile=.pylintrc *.py
18+
- pylint --rcfile=.pylintrc src/*.py
1719

1820
build:
1921
image: docker:latest
2022
stage: build
21-
except:
22-
- master
23-
before_script:
24-
- export IMAGE_TAG=${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
23+
only:
24+
- /^latest$/
25+
- tags
2526
script:
2627
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
2728
- docker build -f Dockerfile -t ${IMAGE_TAG} .

0 commit comments

Comments
 (0)