File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ addons:
17
17
- zsh
18
18
19
19
install :
20
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install shunit2 bash; fi
20
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install shunit2 bash; fi
21
21
22
22
before_script :
23
23
- sudo rm -rf $HOME/.rvm $HOME/.rvmrc
Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ verify: $(PKG) $(SIG)
38
38
gpg --verify $(SIG ) $(PKG )
39
39
40
40
clean :
41
- rm -rf test/opt/rubies
41
+ rm -rf test/fixtures/ opt/rubies
42
42
rm -f $(PKG ) $(SIG )
43
43
44
44
check :
45
45
shellcheck share/$(NAME ) /* .sh
46
46
47
- test/opt/rubies :
47
+ test/fixtures/ opt/rubies :
48
48
./test/setup
49
49
50
- test : test/opt/rubies
50
+ test : test/fixtures/ opt/rubies
51
51
SHELL=` command -v bash` ./test/runner
52
52
SHELL=` command -v zsh` ./test/runner
53
53
Original file line number Diff line number Diff line change @@ -13,13 +13,20 @@ test_ruby_version_x_y="${test_ruby_version%.*}"
13
13
test_ruby_api=" ${TEST_RUBY_API:- ${test_ruby_version% .* } .0} "
14
14
test_ruby_root=" $PWD /test/fixtures/opt/rubies/$test_ruby_engine -$test_ruby_version "
15
15
16
- test_path=" $PATH "
16
+ if [[ " $( basename " $0 " ) " != " setup" && ! -d " $test_ruby_root " ]]; then
17
+ echo " $test_ruby_root needs to exist, use test/setup or build a Ruby there"
18
+ exit 2
19
+ fi
20
+
17
21
test_gem_home=" $HOME /.gem/$test_ruby_engine /$test_ruby_version "
18
22
test_gem_root=" $test_ruby_root /lib/ruby/gems/$test_ruby_api "
19
23
20
24
. ./share/chruby/chruby.sh
21
25
chruby_reset
22
26
27
+ # Capture the PATH after chruby_reset
28
+ test_path=" $PATH "
29
+
23
30
setUp () { return ; }
24
31
tearDown () { return ; }
25
32
oneTimeTearDown () { return ; }
You can’t perform that action at this time.
0 commit comments