forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (66 loc) · 2.65 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
71
72
73
74
language: objective-c
# todo
#
# test with Ruby 2.1, but allow failure
#
# "Current" is dependent on OS X release. At the time of writing, it
# is always either 1.8 or 2.0
env:
matrix:
- 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
# * brew Formulae without which some tests will be skipped
# * bundler gem
# * Ruby gems required for brew-cask
install:
- brew install cabextract
- brew install unar
- 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
# 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
# @@@ todo: setting the --seed here is an ugly temporary hack, to remain only until test-suite glitches are fixed.
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 TESTOPTS="--seed=14830"
- /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" rubocop
- developer/bin/audit_modified_casks "$TRAVIS_COMMIT_RANGE"
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