[Groonga-commit] groonga/groonga at 10d5079 [master] travis: use memory file system on clang case

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 6 15:35:47 JST 2016


Kouhei Sutou	2016-05-06 15:35:47 +0900 (Fri, 06 May 2016)

  New Revision: 10d5079124ce8b0a698a3125d8185f185d2b9fc9
  https://github.com/groonga/groonga/commit/10d5079124ce8b0a698a3125d8185f185d2b9fc9

  Message:
    travis: use memory file system on clang case

  Modified files:
    tools/travis-script.sh

  Modified: tools/travis-script.sh (+10 -9)
===================================================================
--- tools/travis-script.sh    2016-05-06 15:17:45 +0900 (85d59b3)
+++ tools/travis-script.sh    2016-05-06 15:35:47 +0900 (25330ea)
@@ -10,21 +10,22 @@ set -x
 
 export COLUMNS=79
 
+if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
+  memory_fs_size=$[1024 * 1024] # 1MiB
+  byte_per_sector=512
+  n_sectors=$[${memory_fs_size} / ${byte_per_sesctor}]
+  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
+fi
+
 case "${BUILD_TOOL}" in
   autotools)
     # TODO: Re-enable me on OS X
     if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
       test/unit/run-test.sh
     fi
-    if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
-      memory_fs_size=$[1024 * 1024] # 1MiB
-      byte_per_sector=512
-      n_sectors=$[${memory_fs_size} / ${byte_per_sesctor}]
-      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
-    fi
     test/command/run-test.sh ${command_test_options}
     # TODO: Re-enable me on OS X
     if [ "${TRAVIS_OS_NAME}" = "linux" -a "${ENABLE_MRUBY}" = "yes" ]; then
-------------- next part --------------
HTML����������������������������...
Télécharger 



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