mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Disable CI that does not need to run for builds
This commit is contained in:
parent
c7473fd843
commit
9576d06da9
@ -11,7 +11,7 @@ variables:
|
|||||||
# Note: this is deprecated!
|
# Note: this is deprecated!
|
||||||
# ttps://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
|
# ttps://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
|
||||||
GIT_DEPTH: 3
|
GIT_DEPTH: 3
|
||||||
GIT_CLEAN_FLAGS: -f
|
GIT_CLEAN_FLAGS: -n
|
||||||
|
|
||||||
default:
|
default:
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci/cache:e134e812
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache:e134e812
|
||||||
@ -32,8 +32,8 @@ before_script:
|
|||||||
- export DISABLE_GIT_LFS_CHECK=true
|
- export DISABLE_GIT_LFS_CHECK=true
|
||||||
- export VELOREN_ASSETS="$(pwd)/assets"
|
- export VELOREN_ASSETS="$(pwd)/assets"
|
||||||
- echo "VELOREN_ASSETS=$VELOREN_ASSETS"
|
- echo "VELOREN_ASSETS=$VELOREN_ASSETS"
|
||||||
- export RUSTFLAGS="-D warnings"
|
#- export RUSTFLAGS="-D warnings"
|
||||||
- rm -rf target || echo "it seems that sometimes OLD data is left over"
|
#- rm -rf target || echo "it seems that sometimes OLD data is left over"
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
|
@ -1,54 +1,54 @@
|
|||||||
unittests:
|
# unittests:
|
||||||
extends: .recompile-branch
|
# extends: .recompile-branch
|
||||||
stage: build
|
# stage: build
|
||||||
variables:
|
# variables:
|
||||||
GIT_DEPTH: 9999999999999
|
# GIT_DEPTH: 9999999999999
|
||||||
script:
|
# script:
|
||||||
- ln -s /dockercache/cache-all target
|
# - ln -s /dockercache/cache-all target
|
||||||
- rm -r target/debug/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
# - rm -r target/debug/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
||||||
- cargo test --package veloren-voxygen --lib test_all_localizations -- --nocapture --ignored
|
# - cargo test --package veloren-voxygen --lib test_all_localizations -- --nocapture --ignored
|
||||||
- rm -r target/debug/incremental* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
# - rm -r target/debug/incremental* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
||||||
- cargo test
|
# - cargo test
|
||||||
retry:
|
# retry:
|
||||||
max: 2
|
# max: 2
|
||||||
|
#
|
||||||
benchmarks:
|
# benchmarks:
|
||||||
extends: .post-merge
|
# extends: .post-merge
|
||||||
stage: build
|
# stage: build
|
||||||
tags:
|
# tags:
|
||||||
- veloren-benchmark
|
# - veloren-benchmark
|
||||||
script:
|
# script:
|
||||||
- unset DISABLE_GIT_LFS_CHECK
|
# - unset DISABLE_GIT_LFS_CHECK
|
||||||
- ln -s /dockercache/cache-all target
|
# - ln -s /dockercache/cache-all target
|
||||||
- ls -la target/*
|
# - ls -la target/*
|
||||||
- rm -r target/debug/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
# - rm -r target/debug/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
||||||
- rm -r target/release/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
# - rm -r target/release/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
||||||
- cargo bench || exit 0 #temp fix
|
# - cargo bench || exit 0 #temp fix
|
||||||
- TAGUUID="Z$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)" || echo "ignore this returncode, dont ask me why, it works"
|
# - TAGUUID="Z$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)" || echo "ignore this returncode, dont ask me why, it works"
|
||||||
- echo $TAGUUID
|
# - echo $TAGUUID
|
||||||
- echo 'SET veloren.timestamp = "'"$(git show --no-patch --no-notes --pretty='%cd' HEAD)"'";' > upload.sql
|
# - echo 'SET veloren.timestamp = "'"$(git show --no-patch --no-notes --pretty='%cd' HEAD)"'";' > upload.sql
|
||||||
- echo "SET veloren.branch = \$${TAGUUID}\$${CI_COMMIT_REF_NAME}\$${TAGUUID}\$;" >> upload.sql
|
# - echo "SET veloren.branch = \$${TAGUUID}\$${CI_COMMIT_REF_NAME}\$${TAGUUID}\$;" >> upload.sql
|
||||||
- echo "SET veloren.sha = \$${TAGUUID}\$${CI_COMMIT_SHA}\$${TAGUUID}\$;" >> upload.sql
|
# - echo "SET veloren.sha = \$${TAGUUID}\$${CI_COMMIT_SHA}\$${TAGUUID}\$;" >> upload.sql
|
||||||
- find target/criterion -wholename "*new/*.csv" -exec echo '\copy benchmarks ("group", "function", "value", throughput_num, throughput_type, sample_measured_value, unit, iteration_count) from '"'{}' csv header" >> upload.sql \;
|
# - find target/criterion -wholename "*new/*.csv" -exec echo '\copy benchmarks ("group", "function", "value", throughput_num, throughput_type, sample_measured_value, unit, iteration_count) from '"'{}' csv header" >> upload.sql \;
|
||||||
- cat upload.sql
|
# - cat upload.sql
|
||||||
- PGPASSWORD="${CIDBPASSWORD}" PGSSLROOTCERT="./.gitlab/ci-db.crt" psql "sslmode=verify-ca host=auth.veloren.net dbname=benchmarks" -U bsdrftsejrhdrjhgd -f upload.sql;
|
# - PGPASSWORD="${CIDBPASSWORD}" PGSSLROOTCERT="./.gitlab/ci-db.crt" psql "sslmode=verify-ca host=auth.veloren.net dbname=benchmarks" -U bsdrftsejrhdrjhgd -f upload.sql;
|
||||||
retry:
|
# retry:
|
||||||
max: 2
|
# max: 2
|
||||||
|
#
|
||||||
# Coverage is needed on master for the README.md badge to work
|
# # Coverage is needed on master for the README.md badge to work
|
||||||
# tmp remove simd as it doesnt work with tarpaulin: https://github.com/rust-lang/rust/issues/77529
|
# # tmp remove simd as it doesnt work with tarpaulin: https://github.com/rust-lang/rust/issues/77529
|
||||||
coverage:
|
# coverage:
|
||||||
extends: .post-merge
|
# extends: .post-merge
|
||||||
stage: build
|
# stage: build
|
||||||
script:
|
# script:
|
||||||
- ln -s /dockercache/cache-tarpaulin target
|
# - ln -s /dockercache/cache-tarpaulin target
|
||||||
- rm -r target/debug/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
# - rm -r target/debug/incremental/veloren_* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
||||||
- find ./* -name "Cargo.toml" -exec sed -i 's/, "simd"]/]/g' {} \;
|
# - find ./* -name "Cargo.toml" -exec sed -i 's/, "simd"]/]/g' {} \;
|
||||||
- find ./* -name "Cargo.toml" -exec sed -i 's/"simd"]/]/g' {} \;
|
# - find ./* -name "Cargo.toml" -exec sed -i 's/"simd"]/]/g' {} \;
|
||||||
- sed -i 's/vek /#vek /g' ./Cargo.toml;
|
# - sed -i 's/vek /#vek /g' ./Cargo.toml;
|
||||||
- cargo tarpaulin -v -- --test-threads=2
|
# - cargo tarpaulin -v -- --test-threads=2
|
||||||
retry:
|
# retry:
|
||||||
max: 2
|
# max: 2
|
||||||
|
|
||||||
#linux, windows, macos builds here as template
|
#linux, windows, macos builds here as template
|
||||||
.tlinux:
|
.tlinux:
|
||||||
|
@ -8,10 +8,10 @@ code-quality:
|
|||||||
- cargo clippy --all-targets --locked -- -D warnings
|
- cargo clippy --all-targets --locked -- -D warnings
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
|
|
||||||
security:
|
#security:
|
||||||
extends: .recompile-branch
|
#extends: .recompile-branch
|
||||||
stage: check
|
#stage: check
|
||||||
allow_failure: true
|
#allow_failure: true
|
||||||
script:
|
#script:
|
||||||
- ln -s /dockercache/cache-all target
|
#- ln -s /dockercache/cache-all target
|
||||||
- cargo audit
|
#- cargo audit
|
||||||
|
Loading…
Reference in New Issue
Block a user