Skip to content
Extraits de code Groupes Projets
Valider ac858729 rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Throw in a travis config file to try using travis

parent c78e9037
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
rvm:
- ree
- 1.9.2
script: "rake cruise"
env: "TRAVIS=true"
......@@ -9,7 +9,7 @@ class AppConfig < Settingslogic
namespace Rails.env
def self.load!
if no_config_file? && !have_old_config_file?
if no_config_file? && !have_old_config_file? && !travis?
$stderr.puts <<-HELP
******** You haven't set up your Diaspora settings file. **********
Please do the following:
......@@ -36,7 +36,7 @@ HELP
end
super
normalize_pod_url
normalize_admins
end
......@@ -53,6 +53,10 @@ HELP
File.exists?(File.join(Rails.root, "config", "app.yml")) || (File.exists?(File.join(Rails.root, "config", "app_config.yml")))
end
def self.travis?
ENV["TRAVIS"]
end
def self.normalize_pod_url
unless self[:pod_url] =~ /^(https?:\/\/)/ # starts with http:// or https://
self[:pod_url] = "http://#{self[:pod_url]}"
......@@ -94,4 +98,4 @@ HELP
end
return @@pod_uri
end
end
\ No newline at end of file
end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter