ld41-sim_shitty/.gitlab-ci.yml

79 lines
1.6 KiB
YAML
Raw Normal View History

2018-04-07 15:39:51 +00:00
stages:
- build
- test
- deploy
2018-04-08 17:21:08 +00:00
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
2018-04-07 15:39:51 +00:00
2018-04-10 00:41:18 +00:00
test:gut:
2018-04-10 00:40:09 +00:00
stage: test
script:
- GODOT=./bin/godot3-server make tests
2018-04-08 17:21:08 +00:00
export:html5:
2018-04-08 17:23:14 +00:00
stage: deploy
2018-04-08 17:21:08 +00:00
script:
- GODOT=./bin/godot3-server make export-html5
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-html5"
2018-04-08 17:25:24 +00:00
paths:
- build/
only:
- tags
2018-04-08 17:21:08 +00:00
export:windows:
2018-04-08 17:23:14 +00:00
stage: deploy
2018-04-08 17:21:08 +00:00
script:
- GODOT=./bin/godot3-server make export-windows
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-windows"
2018-04-08 17:21:08 +00:00
paths:
- build/
2018-04-08 17:25:24 +00:00
only:
- tags
2018-04-08 17:21:08 +00:00
export:osx:
2018-04-08 17:23:14 +00:00
stage: deploy
2018-04-08 17:21:08 +00:00
script:
- GODOT=./bin/godot3-server make export-osx
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-osx"
2018-04-08 17:21:08 +00:00
paths:
- build/
2018-04-08 17:25:24 +00:00
only:
- tags
2018-04-07 15:39:51 +00:00
2018-04-08 17:21:08 +00:00
export:linux:
2018-04-08 17:23:14 +00:00
stage: deploy
2018-04-07 15:39:51 +00:00
script:
2018-04-08 17:21:08 +00:00
- GODOT=./bin/godot3-server make export-linux
2018-04-07 15:39:51 +00:00
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-linux"
2018-04-07 15:39:51 +00:00
paths:
2018-04-08 17:21:08 +00:00
- build/
only:
- tags
2018-04-08 17:21:08 +00:00
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