Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap #89

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

snap #89

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions snap/.travis.yml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: dell-recovery
version: git
summary: recovery tool.
description: Dell Recovery for Ubuntu.

confinement: classic
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