worstblockgame/.gitlab-ci.yml

56 lines
942 B
YAML
Raw Normal View History

2020-08-13 02:55:01 -07:00
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
2020-08-13 03:00:24 -07:00
- tar -xf 5.3.0.tar.gz
- cd ..
2020-08-13 02:55:01 -07:00
after_script:
- rm -rf tmp
2020-08-13 02:46:17 -07:00
2020-08-13 03:47:25 -07:00
.build:
2020-08-13 02:46:17 -07:00
script:
2020-08-13 03:08:26 -07:00
- MTG_PATH=tmp/minetest_game-5.3.0 ./build.sh
2020-08-13 04:18:38 -07:00
.build_with_artifact:
2020-08-13 04:20:30 -07:00
extends: .build
2020-08-13 02:55:01 -07:00
artifacts:
2020-08-13 03:19:48 -07:00
paths:
2020-08-13 03:36:49 -07:00
- menu
- mods
- game.conf
- minetest.conf
- LICENSE.md
- README.md
2020-08-13 03:31:55 -07:00
exclude:
- "**/*.git*"
- "**/*.moon"
2020-08-13 03:47:25 -07:00
build_push:
2020-08-13 04:18:38 -07:00
extends: .build_with_artifact
2020-08-13 03:47:25 -07:00
artifacts:
name: wbg_build
2020-08-13 04:12:11 -07:00
expire_in: 1 mos
2020-08-13 04:18:38 -07:00
only:
- pushes
- web
2020-08-16 23:04:01 -07:00
except:
- tags
2020-08-13 03:31:55 -07:00
2020-08-13 04:18:38 -07:00
build_mr:
2020-08-13 03:47:25 -07:00
extends: .build
2020-08-13 04:18:38 -07:00
only:
- merge_requests
build_tag:
extends: .build_with_artifact
2020-08-13 03:31:55 -07:00
artifacts:
2020-08-13 03:36:49 -07:00
name: wbg_tag
2020-08-13 03:31:55 -07:00
expire_in: never
only:
- tags