veloren/.gitlab-ci.yml

52 lines
1.5 KiB
YAML
Raw Normal View History

stages:
- check
- build-nightly
- build
- publish
variables:
# Note: this is deprecated!
# https://docs.gitlab.com/ee/ci/yaml/#git-strategy
# However in gitlab web ui it's set to fetch so it should be fine ¯\_(ツ)_/¯
GIT_STRATEGY: fetch
# Note: this is deprecated!
# ttps://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
GIT_DEPTH: 3
GIT_CLEAN_FLAGS: -n
2019-10-08 08:13:40 +00:00
default:
image: registry.gitlab.com/veloren/veloren-docker-ci/cache:e134e812
# https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-pending-pipelines
interruptible: true
# Retry automatically incase the runner times out or there's a runner failure
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
2019-10-08 08:13:40 +00:00
before_script:
- source $HOME/.cargo/env
- df -h /
- free -h
- cargo --version
- export DISABLE_GIT_LFS_CHECK=true
- export VELOREN_ASSETS="$(pwd)/assets"
- echo "VELOREN_ASSETS=$VELOREN_ASSETS"
#- export RUSTFLAGS="-D warnings"
#- rm -rf target || echo "it seems that sometimes OLD data is left over"
2019-10-08 08:13:40 +00:00
2021-05-11 06:03:24 +00:00
# 8866215 is the user that is used to sync data to the collaboration repos
workflow:
rules:
- if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_TAG
2021-05-11 06:03:24 +00:00
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $GITLAB_USER_ID != "8866215"
include:
2020-05-15 13:34:52 +00:00
- local: .gitlab/CI/recompile.yml
- local: .gitlab/CI/release.yml
- local: .gitlab/CI/check.gitlab-ci.yml
- local: .gitlab/CI/build.gitlab-ci.yml
- local: .gitlab/CI/publish.gitlab-ci.yml