Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
2cb97386
Unverified
Commit
2cb97386
authored
Nov 15, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis, build: further maven and gpg refinements
parent
dfd2c605
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
.travis.yml
.travis.yml
+7
-6
ci.go
build/ci.go
+8
-8
mvn.settings
build/mvn.settings
+1
-1
No files found.
.travis.yml
View file @
2cb97386
...
...
@@ -67,14 +67,10 @@ matrix:
-
go run build/ci.go install
-
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
-
brew update
-
brew install android-sdk maven
-
brew install android-sdk maven gpg
-
alias gpg="gpg2"
-
export ANDROID_HOME=/usr/local/opt/android-sdk
-
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
-
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
:
-
go get golang.org/x/tools/cmd/cover
script
:
...
...
build/ci.go
View file @
2cb97386
...
...
@@ -672,8 +672,15 @@ func doAndroidArchive(cmdline []string) {
// Skip Maven deploy and Azure upload for PR builds
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
os
.
Rename
(
"geth.aar"
,
meta
.
Package
+
".aar"
)
os
.
Rename
(
archive
,
meta
.
Package
+
".aar"
)
if
*
signer
!=
""
&&
*
deploy
!=
""
{
// Import the signing key into the local GPG instance
if
b64key
:=
os
.
Getenv
(
*
signer
);
b64key
!=
""
{
...
...
@@ -694,13 +701,6 @@ func doAndroidArchive(cmdline []string) {
"-settings=build/mvn.settings"
,
"-Durl="
+
repo
,
"-DrepositoryId=ossrh"
,
"-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
{
...
...
build/mvn.settings
View file @
2cb97386
...
...
@@ -16,7 +16,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg
2
</gpg.executable>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase></gpg.passphrase>
</properties>
</profile>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment