Skip to content

Commit

Permalink
Fix test issues on macOS and add it to travis
Browse files Browse the repository at this point in the history
also use container-based linux
  • Loading branch information
ojab committed Apr 6, 2018
1 parent 18d45d4 commit cea275a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
language: ruby
sudo: false

os:
- linux
- osx

rvm:
- ruby-2.4
Expand Down
4 changes: 2 additions & 2 deletions test/load_path_cache/cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module Bootsnap
module LoadPathCache
class CacheTest < MiniTest::Test
def setup
@dir1 = Dir.mktmpdir
@dir2 = Dir.mktmpdir
@dir1 = File.realpath(Dir.mktmpdir)
@dir2 = File.realpath(Dir.mktmpdir)
FileUtils.touch("#{@dir1}/a.rb")
FileUtils.mkdir_p("#{@dir1}/foo/bar")
FileUtils.touch("#{@dir1}/foo/bar/baz.rb")
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/realpath_cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class RealpathCacheTest < MiniTest::Test

def setup
@cache = RealpathCache.new
@base_dir = Dir.mktmpdir
@base_dir = File.realpath(Dir.mktmpdir)
@absolute_dir = "#{@base_dir}/absolute"
Dir.mkdir(@absolute_dir)

Expand Down

0 comments on commit cea275a

Please sign in to comment.