-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
70 lines (62 loc) · 2.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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