fpm/.travis.yml

42 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2016-04-08 16:35:34 +08:00
os:
- linux
2017-03-07 15:56:18 +08:00
# FIXME: osx tests are failing
# - osx
2013-05-27 23:23:35 +08:00
language: ruby
sudo: false
2013-05-27 23:23:35 +08:00
rvm:
2016-03-08 03:12:16 +08:00
# 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
2013-05-27 23:23:35 +08:00
- 2.0.0
2016-03-08 02:58:05 +08:00
- 2.1.1
- 2.2.1
2017-06-03 07:25:41 +08:00
- 2.3.1
- 2.2.5
- 2.3.3
2017-06-03 07:25:41 +08:00
- 2.4.0
2016-04-08 17:15:18 +08:00
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# dpkg has also gnu-tar and xz as dependencies, these packages are used
# by pacman.rb, for example.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install dpkg ; 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 rpm || brew install rpm ; 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:
2016-04-08 04:43:15 +08:00
- bsdtar
- rpm
- lintian
- python-setuptools
- python-pip