chiark / gitweb /
gitlab-ci: add `pip install` test on Arch Linux
authorHans-Christoph Steiner <hans@eds.org>
Wed, 6 Dec 2017 09:13:45 +0000 (10:13 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 6 Dec 2017 19:20:17 +0000 (20:20 +0100)
.gitlab-ci.yml

index 9ed32ba3e6de23f127a5b10174df80f6a6234162..3460f092a4b3a9d3bce11c17802936de1c3ed22e 100644 (file)
@@ -66,6 +66,25 @@ ubuntu_lts:
     - cd tests
     - ./run-tests
 
+pip_install:
+  image: archlinux/base
+  only:
+    - master@fdroid/fdroidserver
+  script:
+    - pacman --sync --sysupgrade --refresh --noconfirm grep python-pip python-virtualenv tar
+    # setup venv to act as release build machine
+    - python -m venv sdist-env
+    - . sdist-env/bin/activate
+    - ./setup.py compile_catalog sdist
+    - deactivate
+    - tar tzf dist/fdroidserver-*.tar.gz | grep locale/de/LC_MESSAGES/fdroidserver.mo
+    # back to bare machine to act as user's install machine
+    - pip install dist/fdroidserver-*.tar.gz
+    - test -e /usr/share/locale/de/LC_MESSAGES/fdroidserver.mo
+    - fdroid
+    - fdroid readmeta
+    - fdroid update --help
+
 fedora_latest:
   image: fedora:latest
   only: