ld41-sim_shitty/.gitlab-ci.yml

82 lines
1.6 KiB
YAML

stages:
- build
- test
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get update
- apt-get install -y zip
- mkdir -p bin
- mkdir -p ~/.cache
- mkdir -p ~/.config/godot
- wget http://downloads.tuxfamily.org/godotengine/3.0.2/Godot_v3.0.2-stable_linux_server.64.zip -O godot3-server.zip
- unzip godot3-server.zip
- rm godot3-server.zip
- mv Godot_v3.0.2-stable_linux_server.64 bin/godot3-server
- chmod +x bin/godot3-server
- df -h
- WGET_ARGS='' make install-templates
test:gut:
stage: test
script:
- GODOT=./bin/godot3-server make tests
export:html5:
stage: deploy
script:
- GODOT=./bin/godot3-server make export-html5
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-html5"
paths:
- build/
only:
- tags
export:windows:
stage: deploy
script:
- GODOT=./bin/godot3-server make export-windows
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-windows"
paths:
- build/
only:
- tags
export:osx:
stage: deploy
script:
- GODOT=./bin/godot3-server make export-osx
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-osx"
paths:
- build/
only:
- tags
export:linux:
stage: deploy
script:
- GODOT=./bin/godot3-server make export-linux
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-linux"
paths:
- build/
only:
- tags
export:pck_commit:
stage: deploy
script:
- GODOT=./bin/godot3-server make export-pack
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA-linux"
paths:
- build/
except:
- tags