2016-04-08 16:35:34 +08:00
|
|
|
os:
|
|
|
|
|
- linux
|
2017-12-05 05:51:39 +08:00
|
|
|
- osx
|
2013-05-27 23:23:35 +08:00
|
|
|
language: ruby
|
2016-04-08 03:36:11 +08:00
|
|
|
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
|
2016-04-08 03:38:48 +08:00
|
|
|
- 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
|
2017-03-07 14:12:13 +08:00
|
|
|
- 2.2.5
|
|
|
|
|
- 2.3.3
|
2017-06-03 07:25:41 +08:00
|
|
|
- 2.4.0
|
2017-12-07 23:14:07 +08:00
|
|
|
matrix:
|
|
|
|
|
exclude:
|
|
|
|
|
- os: osx
|
|
|
|
|
rvm: 1.9.3
|
|
|
|
|
- os: osx
|
|
|
|
|
rvm: 2.0.0
|
2016-04-08 17:15:18 +08:00
|
|
|
before_install:
|
2017-12-05 23:03:46 +08:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
|
2016-04-08 18:25:51 +08:00
|
|
|
- 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
|
2017-04-21 23:33:43 +08:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which virtualenv || pip install --user virtualenv ; fi
|
2016-10-15 11:51:25 +08:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then which virtualenv-tools || pip install --user virtualenv virtualenv-tools ; fi
|
2017-04-21 23:33:43 +08:00
|
|
|
- virtualenv ${HOME}/.venv
|
|
|
|
|
script: source ${HOME}/.venv/bin/activate && PATH=${PATH}:${HOME}/.local/bin bundle exec rspec
|
2016-04-08 03:36:11 +08:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
2016-04-08 04:43:15 +08:00
|
|
|
- bsdtar
|
2016-04-08 03:36:11 +08:00
|
|
|
- rpm
|
|
|
|
|
- lintian
|
2016-04-08 07:23:30 +08:00
|
|
|
- python-setuptools
|
2016-10-15 11:51:25 +08:00
|
|
|
- python-pip
|