Skip to content

Commit

Permalink
postgresql@9.4: fix ENV["CI"] usage.
Browse files Browse the repository at this point in the history
Part of #70493.
  • Loading branch information
MikeMcQuaid committed Feb 8, 2021
1 parent 3f3459d commit d1f352c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Formula/postgresql@9.4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ def install
end

def post_install
return if ENV["CI"]

(var/"log").mkpath
postgresql_datadir.mkpath

# Don't initialize database, it clashes when testing other PostgreSQL versions.
return if ENV["HOMEBREW_GITHUB_ACTIONS"]

system "#{bin}/initdb", postgresql_datadir unless pg_version_exists?
end

Expand Down Expand Up @@ -131,8 +133,4 @@ def plist
</plist>
EOS
end

test do
system "#{bin}/initdb", testpath/"test" unless ENV["CI"]
end
end

0 comments on commit d1f352c

Please sign in to comment.