Skip to content

Commit

Permalink
Move log dir creation location
Browse files Browse the repository at this point in the history
in ab4fa87 we removed the creation of the log directory
In production / appliances, we don't want an actual
log directory.

Unfortunatly the current solution caused issues for
plugins

Instead, the log creation was moved to the environment setup.
So all plugins travis builds will get the benefit

ManageIQ#17663
  • Loading branch information
kbrock committed Aug 21, 2018
1 parent 5903757 commit 4b61122
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ matrix:
addons:
postgresql: '9.5'
before_install:
- mkdir ${TRAVIS_BUILD_DIR}/log
- source ${TRAVIS_BUILD_DIR}/tools/ci/before_install.sh
before_script:
- bundle exec rake test:$TEST_SUITE:setup
Expand Down
3 changes: 3 additions & 0 deletions lib/manageiq/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def self.ensure_config_files
puts "Copying #{file} from template..."
FileUtils.cp(APP_ROOT.join(source), file)
end

logdir = APP_ROOT.join("log")
Dir.mkdir(logdir) unless Dir.exist?(logdir)
end

def self.while_updating_bower
Expand Down

0 comments on commit 4b61122

Please sign in to comment.