aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-27 19:43:10 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-27 19:43:10 +0200
commit4731804df24cf1c34ee275f56c372bd98c971f3c (patch)
tree84ef10be3bc4b95cb2b6473f5e2d2412e8a20062
parentRemove unused `libsass` dependency. (diff)
Add GitLab CI linting.
-rw-r--r--.gitlab-ci.yml86
1 files changed, 8 insertions, 78 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 144260ff..93253cc5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,78 +1,8 @@
-image: pythondiscord/site-ci:latest
-
-variables:
- RABBITMQ_HOST: rabbit
- RETHINKDB_HOST: rethinkdb
-
-stages:
-# - build
- - test
-# - deploy
-#
-#build:
-# before_script:
-# - docker info
-#
-# image: docker:stable-git
-#
-# only:
-# - master
-#
-# services:
-# - docker:dind
-#
-# stage: build
-#
-# script:
-# - sh scripts/deploy-ci.sh
-#
-# tags:
-# - docker
-#
-# variables:
-# DOCKER_DRIVER: overlay2
-
-test:
- tags:
- - docker
-
- stage: test
-# services:
-# - name: rabbitmq:3.7.5-alpine
-# alias: rabbit
-#
-# - name: rethinkdb:2.3.6
-# alias: rethinkdb
-
- cache:
- paths:
- - ".venv"
- - ".gem"
-
- script:
- - pipenv sync --dev
-
- - pipenv run lint
-# - pipenv run lintjs
-# - pipenv run lintscss
-#
-# - pipenv run python gunicorn_config.py
-# - pipenv run test
-#
-#deploy:
-# tags:
-# - docker
-#
-# only:
-# - master
-#
-# services:
-# - docker:dind
-#
-# stage: deploy
-# script:
-# - sh scripts/deploy.sh
-#
-# environment:
-# name: Production
-# url: https://pythondiscord.com
+build:
+ script:
+ - docker build -t "gitlab_pysite_$CI_JOB_ID"
+
+lint:
+ script:
+ - pipenv install --system --dev
+ - flake8