khanat-client/.gitlab-ci.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

2021-10-20 16:21:09 +00:00
image: khaganat/godot-export:3.3.4
2021-09-28 08:30:28 +00:00
stages:
2021-10-20 16:21:09 +00:00
- test
- export
variables:
2021-10-21 14:03:17 +00:00
EXPORT_NAME: khanat_client
2021-09-28 08:30:28 +00:00
2021-10-20 16:28:21 +00:00
linux64_test:
2021-10-20 16:21:09 +00:00
stage: test
tags:
- Docker
script:
2021-10-21 14:14:56 +00:00
- mkdir -v -p $EXPORT_NAME$CI_COMMIT_SHORT_SHA
2021-10-21 13:43:42 +00:00
- godot -v --export "Linux/X11" $EXPORT_NAME$CI_COMMIT_SHORT_SHA/$EXPORT_NAME$CI_COMMIT_SHORT_SHA.x86_64
2021-10-20 16:21:09 +00:00
artifacts:
2021-10-21 14:29:53 +00:00
name: $EXPORT_NAME$CI_COMMIT_SHORT_SHA$CI_JOB_NAME
2021-10-20 16:21:09 +00:00
paths:
2021-10-21 13:43:42 +00:00
- $EXPORT_NAME$CI_COMMIT_SHORT_SHA
expire_in: 1 week
2021-10-20 16:21:09 +00:00
except:
- stable
2021-10-21 13:43:42 +00:00
#- develop
2021-10-20 16:21:09 +00:00
when: manual
linux64:
stage: export
2021-09-28 08:30:28 +00:00
tags:
- Docker
script:
2021-10-21 14:29:53 +00:00
- mkdir -v -p $EXPORT_NAME$CI_COMMIT_SHORT_SHA
- godot -v --export "Linux/X11" $EXPORT_NAME$CI_COMMIT_SHORT_SHA/$EXPORT_NAME$CI_COMMIT_SHORT_SHA.x86_64
artifacts:
2021-10-21 14:29:53 +00:00
name: $EXPORT_NAME$CI_COMMIT_SHORT_SHA$CI_JOB_NAME
paths:
2021-10-21 14:29:53 +00:00
- $EXPORT_NAME$CI_COMMIT_SHORT_SHA
only:
2021-10-21 13:08:48 +00:00
- stable
2021-09-28 08:30:28 +00:00
windows:
stage: export
tags:
- Docker
script:
2021-10-21 14:29:53 +00:00
- mkdir -v -p $EXPORT_NAME$CI_COMMIT_SHORT_SHA
- godot -v --export "Windows Desktop" $EXPORT_NAME$CI_COMMIT_SHORT_SHA/$EXPORT_NAME$CI_COMMIT_SHORT_SHA.exe
2021-09-28 08:30:28 +00:00
artifacts:
2021-10-21 14:29:53 +00:00
name: $EXPORT_NAME$CI_COMMIT_SHORT_SHA$CI_JOB_NAME
2021-09-28 08:30:28 +00:00
paths:
2021-10-21 14:29:53 +00:00
- $EXPORT_NAME$CI_COMMIT_SHORT_SHA
only:
2021-10-21 13:08:48 +00:00
- stable
2021-09-28 08:30:28 +00:00
mac:
stage: export
tags:
- Docker
script:
2021-10-21 14:29:53 +00:00
- mkdir -v -p $EXPORT_NAME$CI_COMMIT_SHORT_SHA
- godot -v --export "Mac OSX" $EXPORT_NAME$CI_COMMIT_SHORT_SHA/$EXPORT_NAME$CI_COMMIT_SHORT_SHA.zip
artifacts:
2021-10-21 14:29:53 +00:00
name: $EXPORT_NAME$CI_COMMIT_SHORT_SHA$CI_JOB_NAME
paths:
2021-10-21 14:29:53 +00:00
- $EXPORT_NAME$CI_COMMIT_SHORT_SHA
only:
2021-10-21 13:08:48 +00:00
- stable