Skip to content

Commit 2cb9738

Browse files
committed
travis, build: further maven and gpg refinements
1 parent dfd2c60 commit 2cb9738

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.travis.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,10 @@ matrix:
6767
- go run build/ci.go install
6868
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
6969

70-
# Build the iOS framework and upload it to CocoaPods and Azure
71-
- gem uninstall cocoapods -a
72-
- gem install cocoapods --pre
73-
- travis_wait 30 go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
74-
7570
# Build the Android archive and upload it to Maven Central and Azure
7671
- brew update
77-
- brew install android-sdk maven
72+
- brew install android-sdk maven gpg
73+
- alias gpg="gpg2"
7874
- export ANDROID_HOME=/usr/local/opt/android-sdk
7975

8076
- mkdir -p $ANDROID_HOME/platforms
@@ -84,6 +80,11 @@ matrix:
8480
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
8581
- mv -f $ANDROID_HOME/platforms $HOME/.android.platforms
8682

83+
# Build the iOS framework and upload it to CocoaPods and Azure
84+
- gem uninstall cocoapods -a
85+
- gem install cocoapods --pre
86+
- travis_wait 30 go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
87+
8788
install:
8889
- go get golang.org/x/tools/cmd/cover
8990
script:

build/ci.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,15 @@ func doAndroidArchive(cmdline []string) {
672672
// Skip Maven deploy and Azure upload for PR builds
673673
maybeSkipArchive(env)
674674

675+
// Sign and upload the archive to Azure
676+
archive := "geth-" + archiveBasename("android", env) + ".aar"
677+
os.Rename("geth.aar", archive)
678+
679+
if err := archiveUpload(archive, *upload, *signer); err != nil {
680+
log.Fatal(err)
681+
}
675682
// Sign and upload all the artifacts to Maven Central
676-
os.Rename("geth.aar", meta.Package+".aar")
683+
os.Rename(archive, meta.Package+".aar")
677684
if *signer != "" && *deploy != "" {
678685
// Import the signing key into the local GPG instance
679686
if b64key := os.Getenv(*signer); b64key != "" {
@@ -694,13 +701,6 @@ func doAndroidArchive(cmdline []string) {
694701
"-settings=build/mvn.settings", "-Durl="+repo, "-DrepositoryId=ossrh",
695702
"-DpomFile="+meta.Package+".pom", "-Dfile="+meta.Package+".aar")
696703
}
697-
// Sign and upload the archive to Azure
698-
archive := "geth-" + archiveBasename("android", env) + ".aar"
699-
os.Rename(meta.Package+".aar", archive)
700-
701-
if err := archiveUpload(archive, *upload, *signer); err != nil {
702-
log.Fatal(err)
703-
}
704704
}
705705

706706
func gomobileTool(subcmd string, args ...string) *exec.Cmd {

build/mvn.settings

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<activeByDefault>true</activeByDefault>
1717
</activation>
1818
<properties>
19-
<gpg.executable>gpg2</gpg.executable>
19+
<gpg.executable>gpg</gpg.executable>
2020
<gpg.passphrase></gpg.passphrase>
2121
</properties>
2222
</profile>

0 commit comments

Comments
 (0)