diff options
author | 2018-06-06 14:38:35 +0100 | |
---|---|---|
committer | 2018-06-06 14:38:35 +0100 | |
commit | e2595aa0d834f31c904e325f4adbe6f30e02110d (patch) | |
tree | 42baedd4d696d8418b5d65fe41898585f37d664b /.gitlab-ci.yml | |
parent | Merge remote-tracking branch 'origin/master' (diff) |
[CI] Add GitLab CI YAML
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..19f09095 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: python:3.6-alpine3.7 + +variables: + - PIPENV_VENV_IN_PROJECT: 1 + - PIPENV_IGNORE_VIRTUALENVS: 1 + - RABBITMQ_HOST: localhost + +services: + - docker:dind + + - name: rabbitmq:3.7.5-alpine + alias: rabbit + + - name: rethinkdb:2.3.6 + alias: rethinkdb + + +before_script: + - apk add --update ruby + - pip install pipenv + - pipenv sync --dev --three + - gem install scss_lint + +stages: + - test + - build + +test: + stage: test + script: + - pipenv run lint + - pipenv run lintscss + - pipenv run python gunicorn_config.py + - pipenv run test + +build: + stage: build + script: + - sh scripts/deploy.sh |