Skip to content

Commit

Permalink
Updating build scripts again. Let's see if this works...
Browse files Browse the repository at this point in the history
  • Loading branch information
masonwheeler committed Jan 22, 2018
1 parent d116424 commit 40cd87a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 8 additions & 2 deletions scripts/github-release.boo
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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})

Expand Down

0 comments on commit 40cd87a

Please sign in to comment.