56 lines
942 B
YAML
56 lines
942 B
YAML
default:
|
|
image: debian:stretch-slim
|
|
before_script:
|
|
- apt-get update
|
|
- apt-get install -qq luarocks zsh git
|
|
- luarocks install moonscript
|
|
- mkdir tmp
|
|
- cd tmp
|
|
- wget https://github.com/minetest/minetest_game/archive/5.3.0.tar.gz
|
|
- tar -xf 5.3.0.tar.gz
|
|
- cd ..
|
|
after_script:
|
|
- rm -rf tmp
|
|
|
|
.build:
|
|
script:
|
|
- MTG_PATH=tmp/minetest_game-5.3.0 ./build.sh
|
|
|
|
.build_with_artifact:
|
|
extends: .build
|
|
artifacts:
|
|
paths:
|
|
- menu
|
|
- mods
|
|
- game.conf
|
|
- minetest.conf
|
|
- LICENSE.md
|
|
- README.md
|
|
exclude:
|
|
- "**/*.git*"
|
|
- "**/*.moon"
|
|
|
|
build_push:
|
|
extends: .build_with_artifact
|
|
artifacts:
|
|
name: wbg_build
|
|
expire_in: 1 mos
|
|
only:
|
|
- pushes
|
|
- web
|
|
except:
|
|
- tags
|
|
|
|
build_mr:
|
|
extends: .build
|
|
only:
|
|
- merge_requests
|
|
|
|
build_tag:
|
|
extends: .build_with_artifact
|
|
artifacts:
|
|
name: wbg_tag
|
|
expire_in: never
|
|
only:
|
|
- tags
|