From bdf53fa91142e575b2d7a419c6f39ae2ec7f4d01 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 4 Jul 2019 17:21:46 +0200 Subject: [PATCH 1/3] ci: add snapcraft installation script --- .circleci/install_snapcraft.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 .circleci/install_snapcraft.sh diff --git a/.circleci/install_snapcraft.sh b/.circleci/install_snapcraft.sh new file mode 100755 index 00000000..9bc5aa1e --- /dev/null +++ b/.circleci/install_snapcraft.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +sudo apt-get update + +sudo apt-get install -y \ + python3-pip \ + python3-apt \ + python3-debian \ + python3-pyelftools \ + python3-yaml \ + python3-tabulate \ + python3-jsonschema \ + python3-click \ + python3-pymacaroons \ + python3-simplejson \ + python3-progressbar \ + python3-requests-toolbelt \ + python3-requests-unixsocket + +sudo pip3 install \ + petname \ + snapcraft + +snapcraft --version From 8ecb872c1d2454c2786f8fae5979adf6da1e00ea Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 4 Jul 2019 17:22:09 +0200 Subject: [PATCH 2/3] ci: install snapcraft before goreleaser --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b38c459..0eb56db6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,6 +42,10 @@ jobs: working_directory: /go/src/github.com/jesseduffield/lazydocker steps: - checkout + - run: + name: Install snapcraft + command: | + ./.circleci/install_snapcraft.sh - run: name: Run gorelease command: | From f84c36c6adb89efc1f44e493e4c70cb016bc1dc4 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 4 Jul 2019 17:48:05 +0200 Subject: [PATCH 3/3] ci: get squashfs-tools too --- .circleci/install_snapcraft.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/install_snapcraft.sh b/.circleci/install_snapcraft.sh index 9bc5aa1e..a4a79d62 100755 --- a/.circleci/install_snapcraft.sh +++ b/.circleci/install_snapcraft.sh @@ -3,6 +3,7 @@ sudo apt-get update sudo apt-get install -y \ + squashfs-tools \ python3-pip \ python3-apt \ python3-debian \