1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-25 03:24:33 +02:00
fpm/.travis.yml
Kyle Fazzari 8f6f285271 Introduce support for snap packages (#1490)
[Snaps][1] are self-contained squashfs images. Add basic support for
using them as inputs and outputs.

Typically Snapcraft is used to create snaps, but #1149 indicated a
desire to not use Snapcraft, so the snap is created natively, using
mksquashfs at the end to actually create the squashfs image. This may
not work for all use-cases (e.g. when the source doesn't already have
its dependencies bundled).

[1]: https://snapcraft.io/

Resolve #1181

Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
2018-10-16 15:59:17 -07:00

45 lines
1.3 KiB
YAML

os:
- linux
- osx
language: ruby
sudo: false
rvm:
# We use language features of Ruby that are not supported in Ruby 1.9.x or
# older.
#- 1.8.7
#- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.1
- 2.2.1
- 2.3.1
- 2.2.5
- 2.3.3
- 2.4.0
- 2.5.1
matrix:
exclude:
- os: osx
rvm: 1.9.3
- os: osx
rvm: 2.0.0
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which dpkg-deb || 'dpkg-deb not found'; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which lintian || echo 'lintian not found'; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which python || brew install python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which easy_install || echo 'easy_install not found'; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which virtualenv || pip install --user virtualenv ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then which virtualenv-tools || pip install --user virtualenv virtualenv-tools ; fi
- virtualenv ${HOME}/.venv
script: source ${HOME}/.venv/bin/activate && PATH=${PATH}:${HOME}/.local/bin bundle exec rspec
addons:
apt:
packages:
- bsdtar
- rpm
- lintian
- python-setuptools
- python-pip
- squashfs-tools