From 9ae83d04e2eabb177d47df263df4e7f5e0ca651f Mon Sep 17 00:00:00 2001 From: deed Date: Wed, 31 Jul 2019 16:58:13 +0200 Subject: [PATCH] Ajout de .gitlab-ci.yml pour build CSS --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c9d37bd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +stages: +- build + +Build CSS: + stage: build + tags: + - Docker + image: "python:latest" + + variables: + PIPENV_VENV_IN_PROJECT: 1 + + script: + - apt-get update + - apt-get -y upgrade + - apt-get install -y nodejs npm + + - pip3 install pipenv + + - pipenv --three update + - pipenv install django + - pipenv install django-bulma + + - echo "KHAGANAT_SECRET_KEY= build" > .env + + - pipenv run ./manage.py bulma install + - pipenv run ./manage.py bulma build + + artifacts: + paths: + - static_extra/bulma/css/*