aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_steam/textures/advtrains_wagon_inv.png
diff options
context:
space:
mode:
authorimcasper <casper2756@gmail.com>2018-06-05 03:21:23 +0300
committerorwell96 <orwell@bleipb.de>2018-06-14 17:39:42 +0200
commit105aacccf9304a4eddb4bee81eb9c64b63aae9f4 (patch)
tree31787e4fad75905b27fae77fb0b58b2ac8c74782 /advtrains_train_steam/textures/advtrains_wagon_inv.png
parent3d7924c751bc8ca438e4b9bd1cb1f241cc636494 (diff)
downloadadvtrains-105aacccf9304a4eddb4bee81eb9c64b63aae9f4.tar.gz
advtrains-105aacccf9304a4eddb4bee81eb9c64b63aae9f4.tar.bz2
advtrains-105aacccf9304a4eddb4bee81eb9c64b63aae9f4.zip
Update nodedb.lua
correct read/write file binary data
Diffstat (limited to 'advtrains_train_steam/textures/advtrains_wagon_inv.png')
0 files changed, 0 insertions, 0 deletions
'#n161'>161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
---
# 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"
  CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH

.build_template:
  stage: build
  before_script:
   - apt-get update
   - DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential git cmake libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libleveldb-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev
  script:
    - git clone https://github.com/minetest/irrlicht lib/irrlichtmt --depth 1 -b $(cat misc/irrlichtmt_tag.txt)
    - mkdir build && cd build
    - cmake -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
    - make -j $(($(nproc) + 1))
    - make install
  artifacts:
    when: on_success
    expire_in: 1h
    paths:
      - artifact/*

.debpkg_template:
  stage: package
  before_script:
    - apt-get update
    - apt-get install -y git
    - mkdir -p build/deb/minetest/DEBIAN/
    - cp misc/debpkg-control build/deb/minetest/DEBIAN/control
    - cp -a artifact/minetest/usr build/deb/minetest/
  script:
    - git clone $MINETEST_GAME_REPO build/deb/minetest/usr/share/minetest/games/minetest_game
    - 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/JPEG_PLACEHOLDER/'$JPEG_PKG'/g' build/deb/minetest/DEBIAN/control
    - sed -i 's/LEVELDB_PLACEHOLDER/'$LEVELDB_PKG'/g' build/deb/minetest/DEBIAN/control
    - sed -i 's/JSONCPP_PLACEHOLDER/'$JSONCPP_PKG'/g' build/deb/minetest/DEBIAN/control
    - cd build/deb/ && dpkg-deb -b minetest/ && mv minetest.deb ../../
  artifacts:
    expire_in: 90 day
    paths:
      - ./*.deb

.debpkg_install:
  stage: deploy
  before_script:
    - apt-get update -qy
  script:
    - apt-get install -y ./*.deb
    - minetest --version

##
## Debian
##

# Stretch

build:debian-9:
 extends: .build_template
 image: debian:9

package:debian-9:
  extends: .debpkg_template
  image: debian:9
  needs:
    - build:debian-9
  variables:
    JSONCPP_PKG: libjsoncpp1
    LEVELDB_PKG: libleveldb1v5
    JPEG_PKG: libjpeg62-turbo

deploy:debian-9:
  extends: .debpkg_install
  image: debian:9
  needs:
    - package:debian-9

# Buster

build:debian-10:
 extends: .build_template
 image: debian:10

package:debian-10:
  extends: .debpkg_template
  image: debian:10
  needs:
    - build:debian-10
  variables:
    JSONCPP_PKG: libjsoncpp1
    LEVELDB_PKG: libleveldb1d
    JPEG_PKG: libjpeg62-turbo

deploy:debian-10:
  extends: .debpkg_install
  image: debian:10
  needs:
    - package:debian-10

# Bullseye

build:debian-11:
 extends: .build_template
 image: debian:11

package:debian-11:
  extends: .debpkg_template
  image: debian:11
  needs:
    - build:debian-11
  variables:
    JSONCPP_PKG: libjsoncpp24
    LEVELDB_PKG: libleveldb1d
    JPEG_PKG: libjpeg62-turbo

deploy:debian-11:
  extends: .debpkg_install
  image: debian:11
  needs:
    - package:debian-11

##
## Ubuntu
##

# Bionic

build:ubuntu-18.04:
  extends: .build_template
  image: ubuntu:bionic

package:ubuntu-18.04:
  extends: .debpkg_template
  image: ubuntu:bionic
  needs:
    - build:ubuntu-18.04
  variables:
    JSONCPP_PKG: libjsoncpp1
    LEVELDB_PKG: libleveldb1v5
    JPEG_PKG: libjpeg-turbo8

deploy:ubuntu-18.04:
  extends: .debpkg_install
  image: ubuntu:bionic
  needs:
    - package:ubuntu-18.04

# Focal

build:ubuntu-20.04:
  extends: .build_template
  image: ubuntu:focal

package:ubuntu-20.04: