Skip to content

Commit

Permalink
ulimit on travis machine for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Jul 22, 2020
1 parent e09af43 commit 1b65580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ else
export GEM_HOME="$TRAVIS_BUILD_DIR/gems"
export GEM_PATH="$TRAVIS_BUILD_DIR/gems:$TRAVIS_BUILD_DIR/gems/bundler/gems"

# set the ulimit to be higher
ulimit -a
ulimit -n 2048
ulimit -a

elif [ "${TRAVIS_OS_NAME}" == "linux" ]; then
echo "Setting up Ubuntu for unit tests and Rubocop"
# install pipe viewer to throttle printing logs to screen (not a big deal in linux, but it is in osx)
Expand Down
1 change: 1 addition & 0 deletions ci/travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ else
# run unit tests via openstudio_meta run_rspec command which attempts to reproduce the PAT local environment
# prior to running tests, so we should not set enviroment variables here
if [ "${BUILD_TYPE}" == "test" ];then
ulimit -a
echo "starting unit tests. RUBYLIB=$RUBYLIB ; OPENSTUDIO_TEST_EXE=$OPENSTUDIO_TEST_EXE"
ruby "${TRAVIS_BUILD_DIR}/bin/openstudio_meta" run_rspec --debug --verbose --mongo-dir="$mongo_dir" --openstudio-exe="$OPENSTUDIO_TEST_EXE" "${TRAVIS_BUILD_DIR}/spec/unit-test"
exit_status=$?
Expand Down

0 comments on commit 1b65580

Please sign in to comment.