diff --git a/.travis.yml b/.travis.yml index 7e1325d15..d1870f216 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ mono: env: global: # GITHUB_TOKEN=xxxx - - secure: "Nk6IRV4woRpCk3D/6oVTpAfDRPQnxEBdJN9955X/mtDPLuw/lSYFEKOhIc9LQ29fcCGyQPS1eb+rhCAFsqlOGfhkWWb1whnMGCahi2uXP7naCg3rg7A1HeNY/JcuR+xXgQDQmdbm7aiI9IG0Z2vOIXNQhCuR9j/a8wpEdwrJ8/k=" + - secure: "WtlJfRgv+SakyU28p9agDZ6NMqAHVzLhqSYpuivySv9gWw/RLkEzCeVFPg1sQ9WsqFvEVYwt5Hcasb2U1NydkUdk6tasqy3D+vtKHbisg8jFy2Wdxffu8b5p8laMB7qKCtaBUyDZhvL2ZKXBYDxtYzut/+nSx6V3bMh/FIvN7Fs=" - EnableNuGetPackageRestore=true - NUNIT_VERSION="2.6.3" - NANT_COMMIT="e3644541bf083d8e33f450bfbd1a4147e494769c" diff --git a/scripts/github-release.boo b/scripts/github-release.boo index 05a0f0ada..fdea08645 100644 --- a/scripts/github-release.boo +++ b/scripts/github-release.boo @@ -12,7 +12,7 @@ from System import Environment from System.IO import Path -from System.Net import WebClient, WebException +from System.Net import WebClient, WebException, HttpWebResponse from System.Collections.Generic import List import System.Web.Script.Serialization from System.Web.Extensions @@ -79,7 +79,13 @@ ASSET_NAME = Path.GetFileName(ASSET_FILE) json = JavaScriptSerializer() print "Looking for release $RELEASE_NAME" -result = client().DownloadString(API_URL) +try: + result = client().DownloadString(API_URL) +except wx as WebException: + var e = wx.Response cast HttpWebResponse + using sr = System.IO.StreamReader(e.GetResponseStream()): + print sr.ReadToEnd() + raise releases = json.Deserialize[of List[of Release]](result) release = releases.Find({rel | rel.tag_name == RELEASE_NAME})