Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

CI: build a test artifact #527

Merged
merged 14 commits into from
Jul 23, 2021
Prev Previous commit
Next Next commit
CI: mock building to test publishing
  • Loading branch information
TriplEight committed Jul 23, 2021
commit 0890dc857d1f918e67ed31fac25178dc5ef2c3c1
12 changes: 7 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,19 @@ test-linux-stable:
# but still want to have debug assertions.
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
script:
- time cargo test --all --release --locked
# FIXME: undebug
- echo "time cargo test --all --release --locked"
# it's almost free to produce a binary here, please refrain from using
# it in production since it goes with the debug assertions.
- if [ "${ARE_WE_RELEASING_YET}" ]; then
echo "___Building a binary___"
time cargo build --release --locked --bin polkadot-collator;
echo "___Packing the artifacts___"
mkdir -p ${CARGO_TARGET_DIR}/release/polkadot-collator
echo "time cargo build --release --locked --bin polkadot-collator" | tee ${CARGO_TARGET_DIR}/release/polkadot-collator;
echo "___Packing the artifacts___";
mkdir -p ./artifacts;
mv ${CARGO_TARGET_DIR}/release/polkadot-collator ./artifacts/.;
else
exit 0
exit 0;
fi
- sccache -s

Expand All @@ -119,7 +121,7 @@ publish-s3:
PREFIX: "cumulus/${ARCH}-${DOCKER_OS}"
script:
- echo "___Publishing a binary with debug assertions!___"
- git describe --tags | tee ./artifacts/VERSION
- echo ${CI_COMMIT_REF_NAME} | tee ./artifacts/VERSION
- aws s3 sync ./artifacts/ s3://${BUCKET}/${PREFIX}/$(cat ./artifacts/VERSION)/
- echo "___Updating objects in latest path___"
- aws s3 sync s3://${BUCKET}/${PREFIX}/$(cat ./artifacts/VERSION)/ s3://${BUCKET}/${PREFIX}/latest/
Expand Down