From c1d1b7b61e25547f0e7604603b71d80753e582da Mon Sep 17 00:00:00 2001 From: Marco Trevisan Date: Thu, 23 Feb 2017 17:42:17 +0100 Subject: snap: optionally push all the built snaps on PRs to transfer.sh (#1126) Snaps generated on PRs will be temporary uploaded to transfer.sh, so that it will be easier to test the binaries. --- snap/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'snap') diff --git a/snap/CMakeLists.txt b/snap/CMakeLists.txt index 0b2f76cd3..8ff9e7ad9 100644 --- a/snap/CMakeLists.txt +++ b/snap/CMakeLists.txt @@ -81,3 +81,14 @@ foreach(channel stable candidate beta edge) ) add_dependencies("snap-push-${channel}" "snap") endforeach(channel) + +add_custom_target("snap-push-transfer.sh" + COMMAND bash -c "snap=$(ls *.snap -1 | head -n1); \ + curl --upload-file $snap \ + https://transfer.sh/$(basename $snap)" + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/snapcraft.yaml" + COMMENT "Create snap package ${SNAP_VERSION}" + VERBATIM + ) +add_dependencies("snap-push-transfer.sh" "snap") -- cgit v1.2.3