travis, build: further maven and gpg refinements

pull/3263/head
Péter Szilágyi 8 years ago
parent dfd2c60509
commit 2cb9738649
No known key found for this signature in database
GPG Key ID: 119A76381CCB7DD2
  1. 13
      .travis.yml
  2. 16
      build/ci.go
  3. 2
      build/mvn.settings

@ -67,14 +67,10 @@ matrix:
- go run build/ci.go install - go run build/ci.go install
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
# Build the iOS framework and upload it to CocoaPods and Azure
- gem uninstall cocoapods -a
- gem install cocoapods --pre
- travis_wait 30 go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
# Build the Android archive and upload it to Maven Central and Azure # Build the Android archive and upload it to Maven Central and Azure
- brew update - brew update
- brew install android-sdk maven - brew install android-sdk maven gpg
- alias gpg="gpg2"
- export ANDROID_HOME=/usr/local/opt/android-sdk - export ANDROID_HOME=/usr/local/opt/android-sdk
- mkdir -p $ANDROID_HOME/platforms - mkdir -p $ANDROID_HOME/platforms
@ -84,6 +80,11 @@ matrix:
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
- mv -f $ANDROID_HOME/platforms $HOME/.android.platforms - mv -f $ANDROID_HOME/platforms $HOME/.android.platforms
# Build the iOS framework and upload it to CocoaPods and Azure
- gem uninstall cocoapods -a
- gem install cocoapods --pre
- travis_wait 30 go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
install: install:
- go get golang.org/x/tools/cmd/cover - go get golang.org/x/tools/cmd/cover
script: script:

@ -672,8 +672,15 @@ func doAndroidArchive(cmdline []string) {
// Skip Maven deploy and Azure upload for PR builds // Skip Maven deploy and Azure upload for PR builds
maybeSkipArchive(env) maybeSkipArchive(env)
// Sign and upload the archive to Azure
archive := "geth-" + archiveBasename("android", env) + ".aar"
os.Rename("geth.aar", archive)
if err := archiveUpload(archive, *upload, *signer); err != nil {
log.Fatal(err)
}
// Sign and upload all the artifacts to Maven Central // Sign and upload all the artifacts to Maven Central
os.Rename("geth.aar", meta.Package+".aar") os.Rename(archive, meta.Package+".aar")
if *signer != "" && *deploy != "" { if *signer != "" && *deploy != "" {
// Import the signing key into the local GPG instance // Import the signing key into the local GPG instance
if b64key := os.Getenv(*signer); b64key != "" { if b64key := os.Getenv(*signer); b64key != "" {
@ -694,13 +701,6 @@ func doAndroidArchive(cmdline []string) {
"-settings=build/mvn.settings", "-Durl="+repo, "-DrepositoryId=ossrh", "-settings=build/mvn.settings", "-Durl="+repo, "-DrepositoryId=ossrh",
"-DpomFile="+meta.Package+".pom", "-Dfile="+meta.Package+".aar") "-DpomFile="+meta.Package+".pom", "-Dfile="+meta.Package+".aar")
} }
// Sign and upload the archive to Azure
archive := "geth-" + archiveBasename("android", env) + ".aar"
os.Rename(meta.Package+".aar", archive)
if err := archiveUpload(archive, *upload, *signer); err != nil {
log.Fatal(err)
}
} }
func gomobileTool(subcmd string, args ...string) *exec.Cmd { func gomobileTool(subcmd string, args ...string) *exec.Cmd {

@ -16,7 +16,7 @@
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
</activation> </activation>
<properties> <properties>
<gpg.executable>gpg2</gpg.executable> <gpg.executable>gpg</gpg.executable>
<gpg.passphrase></gpg.passphrase> <gpg.passphrase></gpg.passphrase>
</properties> </properties>
</profile> </profile>

Loading…
Cancel
Save