aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-06-11 09:28:43 +0000
committerGravatar Gareth Coles <[email protected]>2018-06-11 09:28:43 +0000
commit95e35d771b0013933c3dd42519b8211124e163a3 (patch)
treeba45c3f80cc450030aa1ee78efc4a7424d871adf /.gitlab-ci.yml
parentOnly bother with the deploy step on the master branch (diff)
adds log rotation and speeds up build
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml23
1 files changed, 3 insertions, 20 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 960a7362..770312fb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,22 +1,9 @@
-image: python:3.6-alpine3.7
+image: pythondiscord/site-ci:latest
variables:
- PIPENV_VENV_IN_PROJECT: 1
- PIPENV_IGNORE_VIRTUALENVS: 1
RABBITMQ_HOST: rabbit
RETHINKDB_HOST: rethinkdb
-
-before_script:
- - apk add --update tini
- - apk add --update git
- - apk add --update build-base
- - apk add --update gcc
- - apk add --update cmake
- - apk add --update autoconf
- - apk add --update automake
- - apk add --update libtool
-
stages:
- test
- deploy
@@ -39,10 +26,7 @@ test:
- ".gem"
script:
- - apk add --update ruby ruby-dev ruby-rdoc ruby-irb
- - pip install pipenv
- - pipenv sync --dev --three
- - gem install scss_lint
+ - pipenv sync --dev
- pipenv run lint
- pipenv run lintscss
- pipenv run python gunicorn_config.py
@@ -60,9 +44,8 @@ deploy:
stage: deploy
script:
- - apk add docker curl
- sh scripts/deploy.sh
environment:
name: Production
- url: https://pythondiscord.com \ No newline at end of file
+ url: https://pythondiscord.com