From 5a5a42cd610aef99e837d5a8d409fdf0442b3d7c Mon Sep 17 00:00:00 2001 From: Michael Royal <45159366+mikeroyal@users.noreply.github.com> Date: Wed, 23 Oct 2019 15:47:11 -0700 Subject: [PATCH 1/3] snap Added snapcraft.yaml to build [snap](https://snapcraft.io/). --- snap/snapcraft.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..f529bb7f --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,28 @@ +name: dell-recovery +version: git +summary: recovery tool. +description: Dell Recovery for Ubuntu. + +confinement: devmode +base: core18 #Ubuntu18 base + +architectures: + - build-on: amd64 + +parts: + dell-recovery: + source: https://github.com/dell/dell-recovery.git + plugin: python + python-version: python3 + build-packages: + - build-essential + - software-properties-common + - zlib1g-dev + - libzmq3-dev + - libhdf5-serial-dev + - libfreetype6-dev + - libcurl3-dev + +apps: + dell-recovery: + command: bin/dell-recovery From 41613c8e998221a58f32b3615f5a4ef16901438d Mon Sep 17 00:00:00 2001 From: Michael Royal <45159366+mikeroyal@users.noreply.github.com> Date: Fri, 25 Oct 2019 11:41:07 -0700 Subject: [PATCH 2/3] changed confinement to classic mode. --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f529bb7f..9faf3ee3 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -3,7 +3,7 @@ version: git summary: recovery tool. description: Dell Recovery for Ubuntu. -confinement: devmode +confinement: classic base: core18 #Ubuntu18 base architectures: From cfb552096c4c02003ffb0ed96d08fa3c4ebf7a1a Mon Sep 17 00:00:00 2001 From: Michael Royal <45159366+mikeroyal@users.noreply.github.com> Date: Wed, 30 Oct 2019 00:54:32 -0700 Subject: [PATCH 3/3] CI to build snap. Added .travis.yml config file to build snap. --- snap/.travis.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 snap/.travis.yml diff --git a/snap/.travis.yml b/snap/.travis.yml new file mode 100644 index 00000000..782fb179 --- /dev/null +++ b/snap/.travis.yml @@ -0,0 +1,27 @@ +language: bash +os: linux +sudo: enabled +env: + global: + - LC_ALL: C.UTF-8 + - LANG: C.UTF-8 + +install: + - sudo apt update + - sudo apt install -y snapd + - sudo snap install lxd --channel 3.0/stable + - sudo snap install snapcraft --candidate --classic + - sudo /snap/bin/lxd waitready + - sudo /snap/bin/lxd init --auto + - mkdir -p "$TRAVIS_BUILD_DIR/snaps-cache" +script: + - export PATH=/snap/bin:$PATH + - sudo snapcraft cleanbuild + - sudo cp *.snap "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap" +after_success: + - sudo snap install transfer + - timeout 180 sudo /snap/bin/transfer "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap" +after_failure: + - sudo journalctl -u snapd + - sudo snap install http +- /snap/bin/http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16