[Groonga-commit] groonga/groonga at 2aec4c6 [master] travis: try memory file system on OS X again

Back to archive index

Kouhei Sutou null+****@clear*****
Wed May 11 11:32:02 JST 2016


Kouhei Sutou	2016-05-11 11:32:02 +0900 (Wed, 11 May 2016)

  New Revision: 2aec4c6983e4ae459f2b455f8c76e2b03ef20e23
  https://github.com/groonga/groonga/commit/2aec4c6983e4ae459f2b455f8c76e2b03ef20e23

  Message:
    travis: try memory file system on OS X again

  Modified files:
    tools/travis-script.sh

  Modified: tools/travis-script.sh (+11 -0)
===================================================================
--- tools/travis-script.sh    2016-05-11 11:15:43 +0900 (dcc0512)
+++ tools/travis-script.sh    2016-05-11 11:32:02 +0900 (d9e3e04)
@@ -13,6 +13,17 @@ set -x
 
 export COLUMNS=79
 
+if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
+  memory_fs_size=$[50 * 1024 * 1024] # 50MiB
+  byte_per_sector=512
+  n_sectors=$[${memory_fs_size} / ${byte_per_sector}]
+  memory_fs_device_path=$(hdid -nomount ram://${n_sectors})
+  newfs_hfs ${memory_fs_device_path}
+  mkdir -p test/command/tmp
+  mount -t hfs ${memory_fs_device_path} test/command/tmp
+  df -h
+fi
+
 case "${BUILD_TOOL}" in
   autotools)
     # TODO: Re-enable me on OS X
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index