--- # Github repository is cloned every day on Gitlab.com # https://gitlab.com/minetest/minetest # Pipelines URL: https://gitlab.com/minetest/minetest/pipelines stages: - build - package - deploy variables: MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git" .build_template: &build_definition stage: build script: - mkdir cmakebuild - mkdir -p artifact/minetest/usr/ - cd cmakebuild - cmake -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE .. - make -j$(nproc) - make install artifacts: when: on_success expire_in: 1h paths: - artifact/* .debpkg_template: &debpkg_template stage: package before_script: - apt-get update -y || true - apt-get install -y --force-yes git - mkdir -p build/deb/minetest/DEBIAN/ - cp misc/debpkg-control build/deb/minetest/DEBIAN/control - cp -Rp artifact/minetest/usr build/deb/minetest/ script: - git clone $MINETEST_GAME_REPO build/deb/minetest/usr/share/minetest/games/minetest - rm -Rf build/deb/minetest/usr/share/minetest/games/minetest/.git - sed -i 's/DATEPLACEHOLDER/'$(date +%y.%m.%d)'/g' build/deb/minetest/DEBIAN/control - sed -i 's/LEVELDB_PLACEHOLDER/'$LEVELDB_PKG'/g' build/deb/minetest/DEBIAN/control - cd build/deb/ && dpkg-deb -b minetest/ artifacts: when: on_success expire_in: 3 day paths: - build/deb/*.deb .debpkg_install: &debpkg_install stage: deploy before_script: - apt-get update -y || true - DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes libc6 libcurl3-gnutls libfreetype6 libirrlicht1.8 $LEVELDB_PKG liblua5.1-0 libluajit-5.1-2 libopenal1 libstdc++6 libvorbisfile3 libx11-6 zlib1g doxygen gettext script: - dpkg -i build/deb/*.deb ## ## Debian mother of many distros ## # Jessie build:debian-8: <<: *build_definition image: debian:8 before_script: - echo "" > /etc/apt/apt.conf.d/50venenuxcustom - echo "APT::Get::AllowUnauthenticated \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom - echo "Acquire::AllowInsecureRepositories \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom - rm -rf /etc/apt/sources.list - apt-get update -y || true - apt-get -y --force-yes install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev x11proto-xf86vidmode-dev package:debian-8: image: debian:8 dependencies: - build:debian-8 variables: LEVELDB_PKG: libleveldb1 <<: *debpkg_template deploy:debian-8: image: debian:8 dependencies: - package:debian-8 variables: LEVELDB_PKG: libleveldb1 <<: *debpkg_install # Stretch build:debian-9: <<: *build_definition image: debian:9 before_script: - echo "" > /etc/apt/apt.conf.d/50venenuxcustom - echo "APT::Get::AllowUnauthenticated \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom - echo "Acquire::AllowInsecureRepositories \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom - apt-get update -y || true - apt-get -y --force-yes install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev package:debian-9: image: debian:9 dependencies: - build:debian-9 variables: LEVELDB_PKG: libleveldb1v5 <<: *debpkg_template deploy:debian-9: image: debian:9 dependencies: - package:debian-9 variables: LEVELDB_PKG: libleveldb1v5 <<: *debpkg_install # Bullseye build:debian-11: <<: *build_definition image: debian:11 before_script: - apt-get update -y || true - apt-get -y install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev package:debian-11: image: debian:11 dependencies: - build:debian-11 variables: LEVELDB_PKG: libleveldb1d <<: *debpkg_template deploy:debian-11: image: debian:11 dependencies: - package:debian-11 variables: LEVELDB_PKG: libleveldb1d <<: *debpkg_install ## ## winbuntu the distro for stupid users ## # Focal most close to bullseye build:ubuntu-20.04: <<: *build_definition image: ubuntu:focal before_script: - DEBIAN_FRONTEND=noninteractive apt-get update -y || true - DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev package:ubuntu-20.04: image: ubuntu:focal dependencies: - build:ubuntu-20.04 variables: LEVELDB_PKG: libleveldb1d <<: *debpkg_template deploy:ubuntu-20.04: image: ubuntu:focal dependencies: - package:ubuntu-20.04 variables: LEVELDB_PKG: libleveldb1d <<: *debpkg_install # Utopic most close to jessie build:ubuntu-14.10: <<: *build_definition image: ubuntu:utopic before_script: - cat > /etc/apt/apt.conf.d/50venenuxcustom << EOF\nAPT::Get::AllowUnauthenticated "true";\nAcquire::AllowInsecureRepositories "true";\nEOF - rm -rf /etc/apt/sources.list - echo "deb http://old-releases.ubuntu.com/ubuntu/ utopic main restricted universe multiverse" > /etc/apt/sources.list.d/50debianoficial.list - echo "deb http://old-releases.ubuntu.com/ubuntu/ utopic-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list - echo "deb http://old-releases.ubuntu.com/ubuntu utopic-security main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list - apt-get update -y || true - apt-get -y --force-yes install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev package:ubuntu-14.10: image: ubuntu:utopic dependencies: - build:ubuntu-14.10 variables: LEVELDB_PKG: libleveldb1 <<: *debpkg_template deploy:ubuntu-14.10: image: ubuntu:utopic dependencies: - package:ubuntu-14.10 variables: LEVELDB_PKG: libleveldb1 <<: *debpkg_install # Zesty most close to stretch build:ubuntu-17.04: <<: *build_definition image: ubuntu:zesty before_script: - cat > /etc/apt/apt.conf.d/50venenuxcustom << EOF\nAPT::Get::AllowUnauthenticated "true";\nAcquire::AllowInsecureRepositories "true";\nEOF - rm -rf /etc/apt/sources.list - echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse" > /etc/apt/sources.list.d/50debianoficial.list - echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list - echo "deb http://old-releases.ubuntu.com/ubuntu zesty-security main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list - apt-get update -y || true - apt-get -y --force-yes install build-essential cmake pkg-config debhelper dh-systemd dh-autoreconf lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev package:ubuntu-17.04: image: ubuntu:zesty dependencies: - build:ubuntu-17.04 variables: LEVELDB_PKG: libleveldb1v5 <<: *debpkg_template deploy:ubuntu-17.04: image: ubuntu:zesty dependencies: - package:ubuntu-17.04 variables: LEVELDB_PKG: libleveldb1v5 <<: *debpkg_install ## ## Feladora shit distro ## build:fedora-24: <<: *build_definition image: fedora:24 before_script: - dnf -y install make automake gcc gcc-c++ kernel-devel cmake libcurl* openal* libvorbis* libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel bzip2-libs gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel doxygen spatialindex-devel bzip2-devel build:fedora-32: <<: *build_definition image: fedora:32 before_script: - dnf -y install make automake gcc gcc-c++ kernel-devel cmake libcurl* openal* libvorbis* libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel bzip2-libs gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel doxygen spatialindex-devel bzip2-devel