diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 86 |
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 |