diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 31996c101f7d97cece019631f7e5aaaf2162acee..cd4993aad1b150b5e528dc849f2b77dd9cc5a4db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,6 +85,60 @@ push-pypi-manylinux2010: key: manylinux2010 paths: - wheel/ +# +# MANYLINUX1 +# +manylinux1 : + stage : build + image : portus.lam.fr/jclamber/unsio-manylinux1 + only : + variables: + - $WHEEL == "1" + script: + # build + - CI/script/build-unsio-manylinux1.sh + - CI/script/build-wheel.sh + - CI/script/repair-wheel.sh + #- /opt/python/cp37-cp37m/bin/python setup.py sdist -d wheel + - CI/script/test-unsio.sh + cache: + key: manylinux1 + paths: + - wheel/ + artifacts: + name: "manylinux1" + paths: + - test-*.res + - wheel/* + expire_in: 1 week + +# Push wheel to testpypi repos +push-testpypi-manylinux1: + stage: testpypi + image : portus.lam.fr/jclamber/unsio-manylinux1 + only : + variables: + - $TESTPYPI == "1" + script: + - /opt/python/cp37-cp37m/bin/python -m twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD --repository-url https://test.pypi.org/legacy/ ./wheel/python*unsio* + cache: + key: manylinux1 + paths: + - wheel/ + +# Push wheel to pypi repos +push-pypi-manylinux1: + stage: pypi + image : portus.lam.fr/jclamber/unsio-manylinux1 + only : + variables: + - $PYPI == "1" + script: + - /opt/python/cp37-cp37m/bin/python -m twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD ./wheel/python*unsio* + cache: + key: manylinux1 + paths: + - wheel/ # # BUILD wheels for macosx diff --git a/CI/manylinux1/Dockerfile b/CI/docker/manylinux1/Dockerfile similarity index 97% rename from CI/manylinux1/Dockerfile rename to CI/docker/manylinux1/Dockerfile index 59cba833a7b1a7f395ddf232cdee41c608218702..71604b5f31c789e06d4a64782883cee4e4d2cb49 100644 --- a/CI/manylinux1/Dockerfile +++ b/CI/docker/manylinux1/Dockerfile @@ -19,7 +19,7 @@ RUN \ ./cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/usr --skip-license &&\ rm -f cmake-3.2.3-Linux-x86_64.sh &&\ cd /opt &&\ - curl -L https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.21/src/hdf5-1.8.21.tar.gz &&\ + curl -L https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.21/src/hdf5-1.8.21.tar.gz \ --output hdf5-1.8.21.tar.gz &&\ tar zxvf hdf5-1.8.21.tar.gz &&\ cd hdf5-1.8.21 &&\ diff --git a/CI/Dockerfile b/CI/docker/manylinux2010/Dockerfile similarity index 100% rename from CI/Dockerfile rename to CI/docker/manylinux2010/Dockerfile diff --git a/CI/script/build-unsio-manylinu1.sh b/CI/script/build-unsio-manylinux1.sh old mode 100644 new mode 100755 similarity index 100% rename from CI/script/build-unsio-manylinu1.sh rename to CI/script/build-unsio-manylinux1.sh