Update cataloging.rst
[kohadocs.git] / .gitlab-ci.yml
index 2c72dcf..4fa64d7 100644 (file)
@@ -24,21 +24,25 @@ before_script:
 
 image: debian:unstable
 
-test:
-  stage: test
-  script:
-  - apt-get update
-  - DEBIAN_FRONTEND=noninteractive apt-get install -y python3-sphinx  python3-sphinxcontrib.spelling make
-  - make html
-  only:
-  - master
+#test:
+#  stage: test
+#  script:
+#  - apt-get update
+#  - DEBIAN_FRONTEND=noninteractive apt-get install -y python3-sphinx  python3-sphinxcontrib.spelling make
+#  - for l in `ls locales` ; do make -e SPHINXOPTS="-D language='$l'" BUILDDIR="build/$l" html ; make -e SPHINXOPTS="-D language='$l'" BUILDDIR="build/$l" epub ; done
+#  only:
+#  - master
 
 production:
+    cache:
+       paths:
+        - build/en/html
     stage: deploy
     script:
-    - DEBIAN_FRONTEND=noninteractive apt-get install -y python3-sphinx  python3-sphinxcontrib.spelling make
-    - make html
-    - scp -r build/html chrisc@www.koha-community.org:/home/chrisc
+    - DEBIAN_FRONTEND=noninteractive apt-get install -y python3-sphinx  python3-sphinxcontrib.spelling make rsync
+    - make all_epub # build/LANG/epub
+    - make all_html # build/LANG/html
+    - rsync -c -u -r -e "ssh" --progress build/* chrisc@www.koha-community.org:/var/www/manual/19.05/
     only:
         - master
     environment: production