.tests: &tests extends: .recompile-branch stage: build-post tags: - veloren-docker unittests: <<: *tests script: - ln -s /dockercache/cache-all target - cargo test retry: max: 2 coverage: # Run on master and branches extends: .recompile allow_failure: true stage: build-post tags: - veloren-docker script: - ln -s /dockercache/cache-tarpaulin target - cargo tarpaulin -v retry: max: 2 benchmarks: <<: *tests script: - unset DISABLE_GIT_LFS_CHECK - ln -s /dockercache/cache-all target - cargo bench retry: max: 2 localization-status: <<: *tests variables: GIT_DEPTH: 0 allow_failure: true script: - ln -s /dockercache/cache-all target - cargo test -q test_all_localizations -- --nocapture --ignored # Artifacts .artifact: &artifact extends: .release stage: build-post tags: - veloren-docker linux: <<: *artifact script: - ln -s /dockercache/cache-release-linux target - cargo build --release - cp -r target/release/veloren-server-cli $CI_PROJECT_DIR - cp -r target/release/veloren-voxygen $CI_PROJECT_DIR - strip --strip-all veloren-server-cli - strip --strip-all veloren-voxygen artifacts: paths: - veloren-server-cli - veloren-voxygen - assets/ - LICENSE expire_in: 1 week windows: <<: *artifact script: - ln -s /dockercache/cache-release-windows target - cargo build --target=x86_64-pc-windows-gnu --release - cp -r target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe $CI_PROJECT_DIR - cp -r target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR artifacts: paths: - veloren-server-cli.exe - veloren-voxygen.exe - assets/ - LICENSE expire_in: 1 week macos: <<: *artifact script: - ln -s /dockercache/cache-release-macos target - PATH="/dockercache/osxcross/target/bin:$PATH" COREAUDIO_SDK_PATH=/dockercache/osxcross/target/SDK/MacOSX10.13.sdk CC=o64-clang CXX=o64-clang++ cargo build --target x86_64-apple-darwin --release - cp -r target/x86_64-apple-darwin/release/veloren-server-cli $CI_PROJECT_DIR - cp -r target/x86_64-apple-darwin/release/veloren-voxygen $CI_PROJECT_DIR artifacts: paths: - veloren-server-cli - veloren-voxygen - assets/ - LICENSE expire_in: 1 week allow_failure: true