From ddecf5e27f987f4b3f376ae3e14976960cf60522 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Wed, 11 Jan 2023 10:31:03 +0100 Subject: [PATCH] ci: remove ci/snap (#21743) Context: https://github.com/neovim/neovim/pull/21166#issuecomment-1377623160 --- ci/snap/.snapcraft_payload | 194 ----------------------------------- ci/snap/after_success.sh | 14 --- ci/snap/deploy.sh | 39 ------- ci/snap/install.sh | 11 -- ci/snap/script.sh | 8 -- ci/snap/travis_snapcraft.cfg | Bin 2448 -> 0 bytes 6 files changed, 266 deletions(-) delete mode 100644 ci/snap/.snapcraft_payload delete mode 100755 ci/snap/after_success.sh delete mode 100755 ci/snap/deploy.sh delete mode 100755 ci/snap/install.sh delete mode 100755 ci/snap/script.sh delete mode 100644 ci/snap/travis_snapcraft.cfg diff --git a/ci/snap/.snapcraft_payload b/ci/snap/.snapcraft_payload deleted file mode 100644 index 29f895fad6..0000000000 --- a/ci/snap/.snapcraft_payload +++ /dev/null @@ -1,194 +0,0 @@ -{ - "ref": "refs/heads/master", - "before": "66b136c43c12df3dcf8f19ff48f206ad2e4f43fc", - "after": "1bf69c32217cc455603ce8aa2b5415d9717f0fa2", - "repository": { - "id": 292861950, - "node_id": "MDEwOlJlcG9zaXRvcnkyOTI4NjE5NTA=", - "name": "neovim-snap", - "full_name": "hurricanehrndz/neovim-snap", - "private": false, - "owner": { - "name": "hurricanehrndz", - "email": "hurricanehrndz@users.noreply.github.com", - "login": "hurricanehrndz", - "id": 5804237, - "node_id": "MDQ6VXNlcjU4MDQyMzc=", - "avatar_url": "https://avatars0.githubusercontent.com/u/5804237?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/hurricanehrndz", - "html_url": "https://github.com/hurricanehrndz", - "followers_url": "https://api.github.com/users/hurricanehrndz/followers", - "following_url": "https://api.github.com/users/hurricanehrndz/following{/other_user}", - "gists_url": "https://api.github.com/users/hurricanehrndz/gists{/gist_id}", - "starred_url": "https://api.github.com/users/hurricanehrndz/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/hurricanehrndz/subscriptions", - "organizations_url": "https://api.github.com/users/hurricanehrndz/orgs", - "repos_url": "https://api.github.com/users/hurricanehrndz/repos", - "events_url": "https://api.github.com/users/hurricanehrndz/events{/privacy}", - "received_events_url": "https://api.github.com/users/hurricanehrndz/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/hurricanehrndz/neovim-snap", - "description": "snap build for neovim", - "fork": false, - "url": "https://github.com/hurricanehrndz/neovim-snap", - "forks_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/forks", - "keys_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/teams", - "hooks_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/hooks", - "issue_events_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/issues/events{/number}", - "events_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/events", - "assignees_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/assignees{/user}", - "branches_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/branches{/branch}", - "tags_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/tags", - "blobs_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/languages", - "stargazers_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/stargazers", - "contributors_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/contributors", - "subscribers_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/subscribers", - "subscription_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/subscription", - "commits_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/contents/{+path}", - "compare_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/merges", - "archive_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/downloads", - "issues_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/issues{/number}", - "pulls_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/labels{/name}", - "releases_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/releases{/id}", - "deployments_url": "https://api.github.com/repos/hurricanehrndz/neovim-snap/deployments", - "created_at": 1599227980, - "updated_at": "2020-09-04T14:02:38Z", - "pushed_at": 1599228352, - "git_url": "git://github.com/hurricanehrndz/neovim-snap.git", - "ssh_url": "git@github.com:hurricanehrndz/neovim-snap.git", - "clone_url": "https://github.com/hurricanehrndz/neovim-snap.git", - "svn_url": "https://github.com/hurricanehrndz/neovim-snap", - "homepage": null, - "size": 0, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "archived": false, - "disabled": false, - "open_issues_count": 0, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 0, - "open_issues": 0, - "watchers": 0, - "default_branch": "master", - "stargazers": 0, - "master_branch": "master" - }, - "pusher": { - "name": "hurricanehrndz", - "email": "hurricanehrndz@users.noreply.github.com" - }, - "sender": { - "login": "hurricanehrndz", - "id": 5804237, - "node_id": "MDQ6VXNlcjU4MDQyMzc=", - "avatar_url": "https://avatars0.githubusercontent.com/u/5804237?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/hurricanehrndz", - "html_url": "https://github.com/hurricanehrndz", - "followers_url": "https://api.github.com/users/hurricanehrndz/followers", - "following_url": "https://api.github.com/users/hurricanehrndz/following{/other_user}", - "gists_url": "https://api.github.com/users/hurricanehrndz/gists{/gist_id}", - "starred_url": "https://api.github.com/users/hurricanehrndz/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/hurricanehrndz/subscriptions", - "organizations_url": "https://api.github.com/users/hurricanehrndz/orgs", - "repos_url": "https://api.github.com/users/hurricanehrndz/repos", - "events_url": "https://api.github.com/users/hurricanehrndz/events{/privacy}", - "received_events_url": "https://api.github.com/users/hurricanehrndz/received_events", - "type": "User", - "site_admin": false - }, - "created": false, - "deleted": false, - "forced": false, - "base_ref": null, - "compare": "https://github.com/hurricanehrndz/neovim-snap/compare/66b136c43c12...1bf69c32217c", - "commits": [ - { - "id": "1bf69c32217cc455603ce8aa2b5415d9717f0fa2", - "tree_id": "62ea83a2349be8c930c45fdc199f71b08bf5927e", - "distinct": true, - "message": "Build of latest tag", - "timestamp": "2020-09-04T14:05:40Z", - "url": "https://github.com/hurricanehrndz/neovim-snap/commit/1bf69c32217cc455603ce8aa2b5415d9717f0fa2", - "author": { - "name": "Carlos Hernandez", - "email": "carlos@techbyte.ca", - "username": "hurricanehrndz" - }, - "committer": { - "name": "Carlos Hernandez", - "email": "carlos@techbyte.ca", - "username": "hurricanehrndz" - }, - "added": [ - - ], - "removed": [ - - ], - "modified": [ - "snap/snapcraft.yaml" - ] - } - ], - "head_commit": { - "id": "1bf69c32217cc455603ce8aa2b5415d9717f0fa2", - "tree_id": "62ea83a2349be8c930c45fdc199f71b08bf5927e", - "distinct": true, - "message": "Build of latest tag", - "timestamp": "2020-09-04T14:05:40Z", - "url": "https://github.com/hurricanehrndz/neovim-snap/commit/1bf69c32217cc455603ce8aa2b5415d9717f0fa2", - "author": { - "name": "Carlos Hernandez", - "email": "carlos@techbyte.ca", - "username": "hurricanehrndz" - }, - "committer": { - "name": "Carlos Hernandez", - "email": "carlos@techbyte.ca", - "username": "hurricanehrndz" - }, - "added": [ - - ], - "removed": [ - - ], - "modified": [ - "snap/snapcraft.yaml" - ] - } -} diff --git a/ci/snap/after_success.sh b/ci/snap/after_success.sh deleted file mode 100755 index e66721a5e2..0000000000 --- a/ci/snap/after_success.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - - -RESULT_SNAP=$(find ./ -name "*.snap") - -sudo snap install "$RESULT_SNAP" --dangerous --classic - -/snap/bin/nvim --version - -SHA256=$(sha256sum "$RESULT_SNAP") -echo "SHA256: ${SHA256} ." diff --git a/ci/snap/deploy.sh b/ci/snap/deploy.sh deleted file mode 100755 index 1794fc61d9..0000000000 --- a/ci/snap/deploy.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - -SNAP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -WEBHOOK_PAYLOAD="$(cat "${SNAP_DIR}/.snapcraft_payload")" -PAYLOAD_SIG="${SECRET_SNAP_SIG}" - - -snap_release_needed() { - last_committed_tag="$(git tag -l --sort=refname|head -1)" - last_snap_release="$(snap info nvim | awk '$1 == "latest/edge:" { print $2 }' | perl -lpe 's/v\d.\d.\d-//g')" - git fetch -f --tags - git checkout "${last_committed_tag}" 2> /dev/null - last_git_release="$(git describe --first-parent 2> /dev/null | perl -lpe 's/v\d.\d.\d-//g')" - - if [[ -z "$(echo $last_snap_release | perl -ne "print if /${last_git_release}.*/")" ]]; then - return 0 - fi - return 1 -} - - -trigger_snapcraft_webhook() { - [[ -n "${PAYLOAD_SIG}" ]] || exit - echo "Triggering new snap release via webhook..." - curl -X POST \ - -H "Content-Type: application/json" \ - -H "X-Hub-Signature: sha1=${PAYLOAD_SIG}" \ - --data "${WEBHOOK_PAYLOAD}" \ - https://snapcraft.io/nvim/webhook/notify -} - - -if $(snap_release_needed); then - echo "New snap release required" - trigger_snapcraft_webhook -fi diff --git a/ci/snap/install.sh b/ci/snap/install.sh deleted file mode 100755 index 0ceb6f0422..0000000000 --- a/ci/snap/install.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - -sudo apt update -sudo usermod -aG lxd $USER -sudo /snap/bin/lxd.migrate -yes -sudo /snap/bin/lxd waitready -sudo /snap/bin/lxd init --auto - diff --git a/ci/snap/script.sh b/ci/snap/script.sh deleted file mode 100755 index 21d3421044..0000000000 --- a/ci/snap/script.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - -mkdir -p "$CI_BUILD_DIR/snaps-cache" -sg lxd -c snapcraft - diff --git a/ci/snap/travis_snapcraft.cfg b/ci/snap/travis_snapcraft.cfg deleted file mode 100644 index 3e6a60c30d7ad2d24741021eee676f5aad339714..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2448 zcmX@noF(>OZQiDd4(WfU>zF8C5(qoGg8#PxBa_eRT~}U5tUu^C#a6^Tc>N(>v5CCp z44WK1PQTc+{Nns)-{Y>^A9gKax*yG^F<+U5XG3VogCj0)zwd0f{4C{kp;g`OA>;ik z3l7BQ)s`}T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