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

add the packaging metadata to build the travis snap #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: travis
version: git
summary: Travis CI CLI Client
description: |
Command line client interface with a Travis CI service. Works with
travis-ci.org, travis-ci.com or any custom Travis CI setup you might have.

grade: devel # must be 'stable' to release into candidate/stable channel
confinement: strict

apps:
travis:
environment:
RUBYLIB: $SNAP/usr/lib/ruby/2.3.0:$SNAP/usr/lib/x86_64-linux-gnu/ruby/2.3.0
GEM_HOME: $SNAP/gems
GEM_PATH: $SNAP
command: ruby $SNAP/bin/travis
plugs: [home, network]

parts:
travis.rb:
source: .
plugin: nil
build: gem build travis.gemspec
install: gem install travis-*.gem -i $SNAPCRAFT_PART_INSTALL
build-packages: [gcc, libc6-dev, make, ruby-dev]
stage-packages: [ruby]