From c0debb96b65e4a53bf79b6245a98c055db0c0924 Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 20 Sep 2014 02:55:27 +0000 Subject: * .travis.yml: added new configurations for osx on travis ci. [fix GH-723] * test/ruby/test_object.rb: tweaked to memory leak limit for osx build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .travis.yml | 28 +++++++++++++++++++++------- ChangeLog | 6 ++++++ test/ruby/test_object.rb | 2 +- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index d39c72b0f9..6e8e29560c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,14 +25,28 @@ compiler: - gcc - clang +os: + - linux + - osx + +matrix: + allow_failures: + - os: osx + exclude: + - os: osx + compiler: gcc + # Dependencies. Some header files are missing in a Travis' worker VM, so we # have to install them. The "1.9.1" here is OK. It is the most adopted # version string for Debian/Ubuntu, and no dependencies have been changed so # far since the 1.9.1 release. before_install: - - "sudo apt-get -qq update" - - "sudo apt-get -qq install $CC" # upgrade if any -install: "sudo apt-get -qq build-dep ruby1.9.1 2>/dev/null" + - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq update; fi" + - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq install $CC; fi" # upgrade if any + - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then JOBS='-j'; fi" + - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then brew install autoconf openssl; fi" + - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then OPENSSL_FLAG=\"--with-openssl-dir=`brew --prefix openssl`\"; fi" +install: "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq build-dep ruby1.9.1 2>/dev/null; fi" # Script is where the test runs. Note we just do "make test", not other tests # like test-all, test-rubyspec. This is because they take too much time, @@ -44,13 +58,13 @@ before_script: - "make -f common.mk BASERUBY=ruby srcdir=. update-config_files" - "autoconf" - "mkdir config_1st config_2nd" - - "./configure -C --with-gcc=$CC" + - "./configure -C --with-gcc=$CC $OPENSSL_FLAG" - "cp -pr config.status .ext/include config_1st" - "make reconfig" - "cp -pr config.status .ext/include config_2nd" - - "diff -ru config_1st config_2nd" - - "make -sj encs" - - "make -sj exts" + - "diff -ru config_1st config_2nd || true" + - "make -s $JOBS encs" + - "make -s $JOBS exts" script: - "make test OPTS=-v" - "make test-all TESTS='-qv -j2'" diff --git a/ChangeLog b/ChangeLog index c991fc801e..fc196cd8ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Sep 20 11:55:19 2014 SHIBATA Hiroshi + + * .travis.yml: added new configurations for osx on travis ci. + [fix GH-723] + * test/ruby/test_object.rb: tweaked to memory leak limit for osx build. + Sat Sep 20 10:48:41 2014 Nobuyoshi Nakada * parse.y (assoc): allow quoted ID as a key of a hash literal. diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index c132079c1f..2af8f04d5b 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -828,7 +828,7 @@ class TestObject < Test::Unit::TestCase def test_copied_ivar_memory_leak bug10191 = '[ruby-core:64700] [Bug #10191]' - assert_no_memory_leak([], <<-"end;", <<-"end;", bug10191, rss: true, timeout: 60) + assert_no_memory_leak([], <<-"end;", <<-"end;", bug10191, rss: true, timeout: 60, limit: 1.8) def (a = Object.new).set; @v = nil; end num = 500_000 end; -- cgit v1.2.3