You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.2 KiB

language: objective-c
# todo
#
# test with Ruby 1.9, but allow failure
# test with Ruby 2.1, but allow failure
#
# "Current" is currently a duplicate of either 1.8 or 2.0, depending on OS version
env:
matrix:
- CASK_RUBY_TEST_VERSION="1.8"
- CASK_RUBY_TEST_VERSION="2.0"
- CASK_RUBY_TEST_VERSION="Current"
# permit "Current" to fail without affecting our badge
matrix:
allow_failures:
- env: CASK_RUBY_TEST_VERSION="Current"
fast_finish: true
# before_install steps
# * turn off RVM
# * set PATH according to env matrix
# * update Homebrew
# * informational feedback
before_install:
- rvm use system
- export PATH="/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin":"$PATH"
- brew update
- printenv PATH
- /usr/bin/which ruby
- ruby --version
- /usr/bin/which rake
- rake --version
- echo ls_ruby_bindir; ls "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin"
# install steps
# * bundler gem
# * Ruby gems required for brew-cask
install:
- echo gem_install_bundler; sudo "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin/gem" install bundler --bindir="/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin"
- echo bundle; sudo "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin/bundle" --system
- brew install caskroom/cask/brew-cask
# informational feedback
before_script:
- printenv PATH
- /usr/bin/which ruby
- ruby --version
- /usr/bin/which bundle
- bundle --version
- /usr/bin/which rake
- rake --version
- echo ls_ruby_bindir; ls "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin"
# the test itself
# path-quoting is different here due to YAML constraints
script:
- /System/Library/Frameworks/Ruby.framework/Versions/"${CASK_RUBY_TEST_VERSION}"/usr/bin/bundle exec "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin/rake" test
notifications:
irc:
channels:
- "chat.freenode.net#homebrew-cask"
template:
- "(%{repository_name}) %{build_number}: %{branch}@%{commit} %{author} -> %{message} %{build_url}"
use_notice: true
skip_join: true
email: false