Merge branch 'angelonfira/remove-artifact-download-extra-zip' into 'master'

Prevent double zip with CI

Closes #232

See merge request veloren/veloren!519
This commit is contained in:
Forest Anderson 2019-09-29 10:59:34 +00:00
commit 9b19fcc49b

View File

@ -49,40 +49,28 @@ before_script:
except: except:
- schedules - schedules
when: manual when: manual
artifacts:
paths:
- ./
expire_in: 1 week
optional:linux-debug: optional:linux-debug:
<<: *optional <<: *optional
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)
- rm -r -f optional-build - cp target/debug/veloren-server-cli $CI_PROJECT_DIR
- mkdir optional-build - cp target/debug/veloren-voxygen $CI_PROJECT_DIR
- cp target/debug/veloren-server-cli optional-build - cp -r assets $CI_PROJECT_DIR
- cp target/debug/veloren-voxygen optional-build
- cp -r assets optional-build/
- tar -cvjSf bin/optional-linux-debug.tar.bz2 optional-build
- cp bin/optional-linux-debug.tar.bz2 $CI_PROJECT_DIR
artifacts:
paths:
- optional-linux-debug.tar.bz2
expire_in: 1 week
optional:windows-debug: optional:windows-debug:
<<: *optional <<: *optional
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)
- rm -r -f optional-build - cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe $CI_PROJECT_DIR
- mkdir optional-build - cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe $CI_PROJECT_DIR
- cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe optional-build - cp -r assets $CI_PROJECT_DIR
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe optional-build
- cp -r assets optional-build/
- zip -r bin/optional-windows-debug.zip optional-build
- cp bin/optional-windows-debug.zip $CI_PROJECT_DIR
artifacts:
paths:
- optional-windows-debug.zip
expire_in: 1 week
############# #############
# Optional release build # Optional release build
@ -96,40 +84,28 @@ optional:windows-debug:
except: except:
- schedules - schedules
when: manual when: manual
artifacts:
paths:
- ./
expire_in: 1 month
optional-release:linux-debug: optional-release:linux-debug:
<<: *optional-release <<: *optional-release
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)
- rm -r -f optional-release-build - cp target/debug/veloren-server-cli $CI_PROJECT_DIR
- mkdir optional-release-build - cp target/debug/veloren-voxygen $CI_PROJECT_DIR
- cp target/debug/veloren-server-cli optional-release-build - cp -r assets $CI_PROJECT_DIR
- cp target/debug/veloren-voxygen optional-release-build
- cp -r assets optional-release-build/
- tar -cvjSf bin/optional-release-linux-debug.tar.bz2 optional-release-build
- cp bin/optional-release-linux-debug.tar.bz2 $CI_PROJECT_DIR
artifacts:
paths:
- optional-release-linux-debug.tar.bz2
expire_in: 1 month
optional-release:windows-debug: optional-release:windows-debug:
<<: *optional-release <<: *optional-release
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)
- rm -r -f optional-release-build - cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe $CI_PROJECT_DIR
- mkdir optional-release-build - cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe $CI_PROJECT_DIR
- cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe optional-release-build - cp -r assets $CI_PROJECT_DIR
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe optional-release-build
- cp -r assets optional-release-build/
- zip -r bin/optional-release-windows-debug.zip optional-release-build
- cp bin/optional-release-windows-debug.zip $CI_PROJECT_DIR
artifacts:
paths:
- optional-release-windows-debug.zip
expire_in: 1 month
############# #############
# CHECK # CHECK
@ -212,83 +188,25 @@ clippy:
only: only:
refs: refs:
- master - master
artifacts:
paths:
- ./
expire_in: 1 week
commit:linux-debug: commit:linux-debug:
<<: *commit <<: *commit
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)
- rm -r -f commit-build - cp target/debug/veloren-server-cli $CI_PROJECT_DIR
- mkdir commit-build - cp target/debug/veloren-voxygen $CI_PROJECT_DIR
- cp target/debug/veloren-server-cli commit-build - cp -r assets $CI_PROJECT_DIR
- cp target/debug/veloren-voxygen commit-build
- cp -r assets commit-build/
- tar -cvjSf bin/commit-linux-debug.tar.bz2 commit-build
- cp bin/commit-linux-debug.tar.bz2 $CI_PROJECT_DIR
artifacts:
paths:
- commit-linux-debug.tar.bz2
expire_in: 1 week
commit:windows-debug: commit:windows-debug:
<<: *commit <<: *commit
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)
- rm -r -f commit-build - cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe $CI_PROJECT_DIR
- mkdir commit-build - cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe $CI_PROJECT_DIR
- cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe commit-build - cp -r assets $CI_PROJECT_DIR
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe commit-build
- cp -r assets commit-build/
- zip -r bin/commit-windows-debug.zip commit-build
- cp bin/commit-windows-debug.zip $CI_PROJECT_DIR
artifacts:
paths:
- commit-windows-debug.zip
expire_in: 1 week
#############
# NIGHTLY
#############
.nightly: &nightly
stage: post-build
image: registry.gitlab.com/veloren/veloren-docker-ci
tags:
- veloren-docker
only:
- schedules
nightly:linux-optimized:
<<: *nightly
script:
- (cd voxygen && VELOREN_ASSETS=assets cargo build --release)
- (cd server-cli && VELOREN_ASSETS=assets cargo build --release)
- rm -r -f nightly-build
- mkdir nightly-build
- cp target/release/veloren-server-cli nightly-build
- cp target/release/veloren-voxygen nightly-build
- cp -r assets nightly-build/
- tar -cvjSf bin/nightly-linux-optimized.tar.bz2 nightly-build
- cp bin/nightly-linux-optimized.tar.bz2 $CI_PROJECT_DIR
artifacts:
paths:
- nightly-linux-optimized.tar.bz2
expire_in: 2 days
nightly:windows-optimized:
<<: *nightly
script:
- (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)
- rm -r -f nightly-build
- mkdir nightly-build
- cp target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe nightly-build
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe nightly-build
- cp -r assets nightly-build/
- zip -r bin/nightly-windows-optimized.zip nightly-build
- cp bin/nightly-windows-optimized.zip $CI_PROJECT_DIR
artifacts:
paths:
- nightly-windows-optimized.zip
expire_in: 2 days