aboutsummaryrefslogtreecommitdiffstats
path: root/build/ci.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-03 20:44:16 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-11-03 20:44:16 +0800
commited2bc7fbe9a30c1861cffdd7d0fd570847a2ae0c (patch)
tree607dacdb7baeda5e4138bca28b4b0fa1ff4843ac /build/ci.go
parentd0c820acd697964c8480d91e1fa10615276b3ef6 (diff)
downloaddexon-ed2bc7fbe9a30c1861cffdd7d0fd570847a2ae0c.tar.gz
dexon-ed2bc7fbe9a30c1861cffdd7d0fd570847a2ae0c.tar.zst
dexon-ed2bc7fbe9a30c1861cffdd7d0fd570847a2ae0c.zip
build, internal/build: misc improvements (#3229)
* travis.yml: don't create darwin/386 builds * build: remove godep remains * internal/build: improve archives - enable compression for zip files - don't write half-complete archives * build: add -unstable to archive names
Diffstat (limited to 'build/ci.go')
-rw-r--r--build/ci.go20
1 files changed, 12 insertions, 8 deletions
diff --git a/build/ci.go b/build/ci.go
index 910de6d60..c6c6f61c9 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -296,18 +296,20 @@ func doArchive(cmdline []string) {
log.Fatal("unknown archive type: ", atype)
}
- env := build.Env()
+ var (
+ env = build.Env()
+ base = archiveBasename(*arch, env)
+ geth = "geth-" + base + ext
+ alltools = "geth-alltools-" + base + ext
+ )
maybeSkipArchive(env)
-
- base := archiveBasename(*arch, env)
- if err := build.WriteArchive("geth-"+base, ext, gethArchiveFiles); err != nil {
+ if err := build.WriteArchive(geth, gethArchiveFiles); err != nil {
log.Fatal(err)
}
- if err := build.WriteArchive("geth-alltools-"+base, ext, allToolsArchiveFiles); err != nil {
+ if err := build.WriteArchive(alltools, allToolsArchiveFiles); err != nil {
log.Fatal(err)
}
-
- for _, archive := range []string{"geth-" + base + ext, "geth-alltools-" + base + ext} {
+ for _, archive := range []string{geth, alltools} {
if err := archiveUpload(archive, *upload, *signer); err != nil {
log.Fatal(err)
}
@@ -315,9 +317,11 @@ func doArchive(cmdline []string) {
}
func archiveBasename(arch string, env build.Environment) string {
- // date := time.Now().UTC().Format("200601021504")
platform := runtime.GOOS + "-" + arch
archive := platform + "-" + build.VERSION()
+ if isUnstableBuild(env) {
+ archive += "-unstable"
+ }
if env.Commit != "" {
archive += "-" + env.Commit[:8]
}