Permalink
Browse files

favor notify.travis-ci.org over travis-ci.org as this uses the new li…

…stener
  • Loading branch information...
1 parent f1e66af commit b6f2e05325e51fb8dbe208dd12d7bb80033dfdc0 @joshk joshk committed Apr 14, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 docs/travis
  2. +1 −1 services/travis.rb
  3. +5 −5 test/travis_test.rb
View
@@ -10,8 +10,8 @@ Install Notes
1. Create an account at http://travis-ci.org (you can sign in with GitHub)
2. Enter your credentials
- The token which you can find on the Travis profile page
- - optional: Enter the username who the travis-token belongs to (defaults to the repository owner)
- - optional: Enter the host of your Travis installation (defaults to http://travis-ci.org), the protocol-prefix is optional and defaults to "http://".
+ - optional: Enter the username who the Travis token belongs to (defaults to the repository owner)
+ - optional: Enter the host of your Travis installation (defaults to http://notify.travis-ci.org), the protocol-prefix is optional and defaults to "http://".
3. Make sure the "Active" checkbox is ticked, and click "Update Settings".
4. Click on the "Travis" service name and then click the "Test Hook" link.
5. You should receive an email from Travis once the build has completed
View
@@ -37,7 +37,7 @@ def full_domain
if data['domain'].present?
data['domain']
else
- 'http://pings.travis-ci.org'
+ 'http://notify.travis-ci.org'
end.strip
end
View
@@ -25,16 +25,16 @@ def test_keeps_https_scheme
end
def test_reads_default_domain_when_not_in_config
- assert_equal "pings.travis-ci.org", @svc.domain
+ assert_equal "notify.travis-ci.org", @svc.domain
end
def test_constructs_post_receive_url
- assert_equal 'http://pings.travis-ci.org', @svc.travis_url
+ assert_equal 'http://notify.travis-ci.org', @svc.travis_url
end
def test_posts_payload
@stubs.post '/' do |env|
- assert_equal 'http://pings.travis-ci.org', env[:url].to_s
+ assert_equal 'http://notify.travis-ci.org', env[:url].to_s
assert_equal basic_auth('kronn', '5373dd4a3648b88fa9acb8e46ebc188a'),
env[:request_headers]['authorization']
assert_equal payload, JSON.parse(Rack::Utils.parse_query(env[:body])['payload'])
@@ -67,7 +67,7 @@ def test_handles_blank_strings_without_errors
assert_equal 'mojombo', svc.user
assert_equal '5373dd4a3648b88fa9acb8e46ebc188a', svc.token
- assert_equal 'pings.travis-ci.org', svc.domain
+ assert_equal 'notify.travis-ci.org', svc.domain
assert_equal 'http', svc.scheme
end
@@ -82,7 +82,7 @@ def test_defaults_to_http_scheme
def test_defaults_to_pings_travis_ci_domain
svc = service(basic_config.reject{ |key,v| key == 'domain' }, payload)
- assert_equal "pings.travis-ci.org", svc.domain
+ assert_equal "notify.travis-ci.org", svc.domain
end
def service(*args)

0 comments on commit b6f2e05

Please sign in to comment.