Skip to content

Commit

Permalink
increase verbosity of CI scripts so we can see what's going on
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Haoyi committed Aug 2, 2016
1 parent 7b06800 commit 184b723
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ci/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ def updateConstants(version: String = buildVersion,
val unstableCurlUrl = "$unstableCurlUrl"
}
"""
println("Writing Constants.scala")
rm! cwd/'project/"Constants.scala"
write(cwd/'project/"Constants.scala", versionTxt)
println(read! cwd/'project/"Constants.scala")
}

def publishSigned() = {
Expand Down Expand Up @@ -89,6 +91,8 @@ def publishDocs() = {
s"snapshot-commit-uploads/$travisTag"
)
}
println("(stableKey, unstableKey)")
println((stableKey, unstableKey))
updateConstants(
latestTaggedVersion,
buildVersion,
Expand Down
5 changes: 4 additions & 1 deletion ci/upload.sc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ import scalaj.http._

@main
def shorten(longUrl: String) = {
Http("https://git.io")
println("shorten longUrl " + longUrl)
val shortUrl = Http("https://git.io")
.postForm(Seq("url" -> longUrl))
.asString
.headers("Location")
.head
println("shorten shortUrl " + shortUrl)
shortUrl
}
@main
def apply(uploadedFile: Path,
Expand Down

0 comments on commit 184b723

Please sign in to comment.