5 # test with Ruby 2.1, but allow failure
8 # "Current" is dependent on OS X release. At the time of writing, it
9 # is always either 1.8 or 2.0
12 - CASK_RUBY_TEST_VERSION="2.0"
13 - CASK_RUBY_TEST_VERSION="Current"
15 # permit "Current" to fail without affecting our badge
18 - env: CASK_RUBY_TEST_VERSION="Current"
21 # before_install steps
23 # * set PATH according to env matrix
25 # * informational feedback
28 - export PATH="/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin":"$PATH"
35 - echo ls_ruby_bindir; ls "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin"
38 # * brew Formulae without which some tests will be skipped
40 # * Ruby gems required for brew-cask
42 - brew install cabextract
44 - 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"
45 - echo bundle; sudo "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin/bundle" --system
47 # informational feedback
52 - /usr/bin/which bundle
56 - echo ls_ruby_bindir; ls "/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin"
59 # path-quoting is different here due to YAML constraints
60 # @@@ todo: setting the --seed here is an ugly temporary hack, to remain only until test-suite glitches are fixed.
62 - /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 TESTOPTS="--seed=14829"
67 - "chat.freenode.net#homebrew-cask"
69 - "(%{repository_name}) %{build_number}: %{branch}@%{commit} %{author} -> %{message} %{build_url}"