Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't minfiy on staging

  • Loading branch information...
commit 55bdaf780f2f9bb61f375565144fac9a1a7b60d8 1 parent de0790c
@rkh rkh authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/travis/assets.rb
View
8 lib/travis/assets.rb
@@ -17,12 +17,16 @@ def initialize(roots = '.')
@env = ENV['ENV']
end
+ def staging?
+ ENV['API_ENDPOINT'] =~ /staging/ unless development?
+ end
+
def production?
- env == 'production'
+ !staging? and !development?
end
def development?
- !production?
+ env != 'production'
end
def vendor_order
Please sign in to comment.
Something went wrong with that request. Please try again.