mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix my CodeReview,
no need to remove old zip because we remove the whole bin folder now no need to copy archive at the end, just upload the archive in `bin/` Former-commit-id: 05c6faf144e67169336a2cdcb5817ac9998e170c
This commit is contained in:
parent
c95bee9838
commit
1ed043d70e
@ -10,12 +10,14 @@ variables:
|
|||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p /cache/veloren
|
- mkdir -p /cache/veloren
|
||||||
|
- rm -rf /cache/veloren/bin
|
||||||
- cd /cache/veloren
|
- cd /cache/veloren
|
||||||
- if [ -d .git ]; then
|
- if [ -d .git ]; then
|
||||||
echo "is git dir";
|
echo "is git dir";
|
||||||
else
|
else
|
||||||
git clone $CI_REPOSITORY_URL . ;
|
git clone $CI_REPOSITORY_URL . ;
|
||||||
fi;
|
fi;
|
||||||
|
- mkdir -p /cache/veloren/bin
|
||||||
- rm -f .git/index.lock
|
- rm -f .git/index.lock
|
||||||
- rm -f .git/shallow.lock
|
- rm -f .git/shallow.lock
|
||||||
- rm -f .git/HEAD.lock
|
- rm -f .git/HEAD.lock
|
||||||
@ -42,7 +44,7 @@ build-voxygen:
|
|||||||
stage: build
|
stage: build
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- (cd voxygen && cargo build)
|
- (cd voxygen && cargo build)
|
||||||
|
|
||||||
@ -50,7 +52,7 @@ build-server-cli:
|
|||||||
stage: build
|
stage: build
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- (cd server-cli && cargo build)
|
- (cd server-cli && cargo build)
|
||||||
|
|
||||||
@ -62,7 +64,7 @@ unittests:
|
|||||||
stage: test
|
stage: test
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
@ -70,7 +72,7 @@ benchmarktests:
|
|||||||
stage: test
|
stage: test
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- cargo bench
|
- cargo bench
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
@ -84,25 +86,27 @@ clean-code:
|
|||||||
stage: post-build
|
stage: post-build
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
coverage:
|
# # Coverage needs to be disabled until an issue in the Rust compiler is fixed
|
||||||
stage: post-build
|
# # https://github.com/rust-lang/rust/issues/58375
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
# coverage:
|
||||||
tags:
|
# stage: post-build
|
||||||
- docker
|
# image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
script:
|
# tags:
|
||||||
- cargo tarpaulin --skip-clean --all || echo "There is a problem in tarpaulin which sometimes fails"
|
# - veloren-docker
|
||||||
allow_failure: true
|
# script:
|
||||||
|
# - cargo tarpaulin --all
|
||||||
|
# allow_failure: true
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
stage: post-build
|
stage: post-build
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- cargo clippy --all -- -D clippy || echo "This job is disabled, because we are not activly using it now, so we dont want to see yellow failed partly"
|
- cargo clippy --all -- -D clippy || echo "This job is disabled, because we are not activly using it now, so we dont want to see yellow failed partly"
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
@ -115,7 +119,7 @@ commit-linux-debug:
|
|||||||
stage: executable
|
stage: executable
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- (cd voxygen && VELOREN_ASSETS=assets cargo build)
|
- (cd voxygen && VELOREN_ASSETS=assets cargo build)
|
||||||
- (cd server-cli && VELOREN_ASSETS=assets cargo build)
|
- (cd server-cli && VELOREN_ASSETS=assets cargo build)
|
||||||
@ -125,25 +129,22 @@ commit-linux-debug:
|
|||||||
- cp target/debug/veloren-voxygen commit-build
|
- cp target/debug/veloren-voxygen commit-build
|
||||||
- cp -r assets commit-build/
|
- cp -r assets commit-build/
|
||||||
- cp -r voxygen/shaders commit-build/
|
- cp -r voxygen/shaders commit-build/
|
||||||
- rm -f commit-linux-debug.tar.bz2
|
- tar -cvjSf bin/commit-linux-debug.tar.bz2 commit-build
|
||||||
- tar -cvjSf commit-linux-debug.tar.bz2 commit-build
|
|
||||||
- cp commit-linux-debug.tar.bz2 $CI_PROJECT_DIR
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- commit-linux-debug.tar.bz2
|
- bin/commit-linux-debug.tar.bz2
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
except:
|
except:
|
||||||
- schedules
|
- schedules
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- master
|
- master
|
||||||
- add-docker-gitlab-ci
|
|
||||||
|
|
||||||
commit-windows-debug:
|
commit-windows-debug:
|
||||||
stage: executable
|
stage: executable
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- (cd voxygen && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu)
|
- (cd voxygen && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu)
|
||||||
- (cd server-cli && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu)
|
- (cd server-cli && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu)
|
||||||
@ -153,19 +154,16 @@ commit-windows-debug:
|
|||||||
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe commit-build
|
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe commit-build
|
||||||
- cp -r assets commit-build/
|
- cp -r assets commit-build/
|
||||||
- cp -r voxygen/shaders commit-build/
|
- cp -r voxygen/shaders commit-build/
|
||||||
- rm -f commit-windows-debug.zip
|
- zip -r bin/commit-windows-debug.zip commit-build
|
||||||
- zip -r commit-windows-debug.zip commit-build
|
|
||||||
- cp commit-windows-debug.zip $CI_PROJECT_DIR
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- commit-windows-debug.zip
|
- bin/commit-windows-debug.zip
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
except:
|
except:
|
||||||
- schedules
|
- schedules
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- master
|
- master
|
||||||
- add-docker-gitlab-ci
|
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# NIGHTLY
|
# NIGHTLY
|
||||||
@ -175,7 +173,7 @@ nightly-linux-optimized:
|
|||||||
stage: executable
|
stage: executable
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- (cd voxygen && VELOREN_ASSETS=assets cargo build --release)
|
- (cd voxygen && VELOREN_ASSETS=assets cargo build --release)
|
||||||
- (cd server-cli && VELOREN_ASSETS=assets cargo build --release)
|
- (cd server-cli && VELOREN_ASSETS=assets cargo build --release)
|
||||||
@ -185,12 +183,10 @@ nightly-linux-optimized:
|
|||||||
- cp target/release/veloren-voxygen nightly-build
|
- cp target/release/veloren-voxygen nightly-build
|
||||||
- cp -r assets nightly-build/
|
- cp -r assets nightly-build/
|
||||||
- cp -r voxygen/shaders nightly-build/
|
- cp -r voxygen/shaders nightly-build/
|
||||||
- rm -f nightly-linux-optimized.tar.bz2
|
- tar -cvjSf bin/nightly-linux-optimized.tar.bz2 nightly-build
|
||||||
- tar -cvjSf nightly-linux-optimized.tar.bz2 nightly-build
|
|
||||||
- cp nightly-linux-optimized.zip $CI_PROJECT_DIR
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- nightly-linux-optimized.tar.bz2
|
- bin/nightly-linux-optimized.tar.bz2
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
@ -199,7 +195,7 @@ nightly-windows-optimized:
|
|||||||
stage: executable
|
stage: executable
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci
|
image: registry.gitlab.com/veloren/veloren-docker-ci
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- (cd voxygen && VELOREN_ASSETS=assets cargo build --release --target=x86_64-pc-windows-gnu)
|
- (cd voxygen && VELOREN_ASSETS=assets cargo build --release --target=x86_64-pc-windows-gnu)
|
||||||
- (cd server-cli && VELOREN_ASSETS=assets cargo build --release --target=x86_64-pc-windows-gnu)
|
- (cd server-cli && VELOREN_ASSETS=assets cargo build --release --target=x86_64-pc-windows-gnu)
|
||||||
@ -209,12 +205,10 @@ nightly-windows-optimized:
|
|||||||
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe nightly-build
|
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe nightly-build
|
||||||
- cp -r assets nightly-build/
|
- cp -r assets nightly-build/
|
||||||
- cp -r voxygen/shaders nightly-build/
|
- cp -r voxygen/shaders nightly-build/
|
||||||
- rm -f nightly-windows-optimized.zip
|
- zip -r bin/nightly-windows-optimized.zip nightly-build
|
||||||
- zip -r nightly-windows-optimized.zip nightly-build
|
|
||||||
- cp nightly-windows-optimized.zip $CI_PROJECT_DIR
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- nightly-windows-optimized.zip
|
- bin/nightly-windows-optimized.zip
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
<img alt="Veloren logo on a screenshot" src="https://cdn.discordapp.com/attachments/449602562165833760/521121348886593547/veloren_image.png">
|
<img alt="Veloren logo on a screenshot" src="https://cdn.discordapp.com/attachments/449602562165833760/521121348886593547/veloren_image.png">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
[![pipeline status](https://gitlab.com/veloren/veloren/badges/master/pipeline.svg)](https://gitlab.com/veloren/veloren/commits/master)
|
||||||
|
[![coverage report](https://gitlab.com/veloren/veloren/badges/master/coverage.svg)](https://gitlab.com/veloren/veloren/commits/master)
|
||||||
|
[![license](https://img.shields.io/github/license/veloren/veloren.svg)](https://gitlab.com/veloren/veloren/blob/master/LICENSE)
|
||||||
|
[![discord](https://img.shields.io/discord/449602562165833758.svg)](https://discord.gg/WEXSY9h)
|
||||||
|
|
||||||
## Welcome To Veloren!
|
## Welcome To Veloren!
|
||||||
|
|
||||||
Veloren is a multiplayer voxel RPG written in Rust. Veloren takes inspiration from games such as Cube World, Minecraft and Dwarf Fortress. The game is currently under heavy development, but is playable.
|
Veloren is a multiplayer voxel RPG written in Rust. Veloren takes inspiration from games such as Cube World, Minecraft and Dwarf Fortress. The game is currently under heavy development, but is playable.
|
||||||
|
Loading…
Reference in New Issue
Block a user