Kouhei Sutou
null+****@clear*****
Fri May 6 15:11:40 JST 2016
Kouhei Sutou 2016-05-06 15:11:40 +0900 (Fri, 06 May 2016) New Revision: 1092d5d022ffdae6e63be385a9afd6e053269009 https://github.com/groonga/groonga/commit/1092d5d022ffdae6e63be385a9afd6e053269009 Message: travis: use memory file system to speed up test Modified files: tools/travis-script.sh Modified: tools/travis-script.sh (+10 -1) =================================================================== --- tools/travis-script.sh 2016-05-06 14:38:56 +0900 (ff7e2a4) +++ tools/travis-script.sh 2016-05-06 15:11:40 +0900 (85d59b3) @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e @@ -16,6 +16,15 @@ case "${BUILD_TOOL}" in 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����������������������������...ダウンロード