From eb73611b7d43c1ef55ce82471340acaeb76980d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Sko=C5=99epa?= <jakub@skorepa.info> Date: Thu, 7 Apr 2016 21:56:42 +0200 Subject: [PATCH] .gitlab-ci.yml --- .gitignore | 3 +++ .gitlab-ci.yml | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..0de05137 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +generator +static +build diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..3c488828 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +all: + only: + - master + script: + - node --version + - rm -rf build + - if [ -f generator ] ; then cd generator; git pull; cd ..; else git clone git@git.ok1kvk.cz:ok1kvk.cz/generator.git; fi + - if [ -f static ] ; then cd static; git pull; cd ..; else git clone git@git.ok1kvk.cz:ok1kvk.cz/static.git; fi + - cd generator/; npm install; cd .. + - node generator/index.js --contentdir . --staticdir static --themedir generator/theme --builddir build --noserver + - generator/upload + +cache: + paths: + - generator/ + - static/ + +# Needs following env var: LFTP_PASSWORD + -- GitLab