From b5d32ea8e80cb115d100ee90f8c478ee8dbc3d8d Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Tue, 23 May 2017 19:36:05 +0000 Subject: [PATCH] add the packaging metadata to build the travis snap --- snap/snapcraft.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..af6fc39d --- /dev/null +++ b/snap/snapcraft.yaml @@ -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]