From e5e51acfb4da9765602fc951f2d780895d5ec897 Mon Sep 17 00:00:00 2001 From: s3lph Date: Fri, 19 Oct 2018 22:21:44 +0200 Subject: [PATCH] Fixed missing MATEMAT_VERSION env var. --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ffb4d8..da43306 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,6 @@ stages: before_script: - export MATEMAT_VERSION=$(python -c 'import matemat; print(matemat.__version__)') -- echo ${MATEMAT_VERSION} @@ -86,14 +85,13 @@ build_archlinux: image: base/devel:latest # Use an archlinux image instead of the customized debian image. script: - pacman -Sy --noconfirm python python-setuptools python-pip python-wheel + - export MATEMAT_VERSION=$(python -c 'import matemat; print(matemat.__version__)') - cp -r static/ package/archlinux/matemat/usr/lib/matemat/static/ - cp -r templates/ package/archlinux/matemat/usr/lib/matemat/templates/ - python3 setup.py egg_info -d -b +master install --root=package/archlinux/matemat/ --prefix=/usr --optimize=1 - cd package/archlinux - mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat - rm -rf matemat/usr/bin - - echo ${MATEMAT_VERSION} - - ls - sed -re "s/__VERSION__/${MATEMAT_VERSION}/g" -i PKGBUILD - sudo -u nobody makepkg --syncdeps - mv matemat-${MATEMAT_VERSION}-1-any.pkg.tar.xz "matemat-${MATEMAT_VERSION}+${CI_COMMIT_REF_NAME}-1-any.pkg.tar.xz"