forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new build script, ci.go, replaces some of the older shell scripts. ci.go can compile go-ethereum, run the tests, create release archives and debian source packages.
- Loading branch information
Showing
19 changed files
with
938 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,45 @@ | ||
language: go | ||
go: | ||
- 1.4.2 | ||
- 1.5.4 | ||
- 1.6.2 | ||
go_import_path: github.com/ethereum/go-ethereum | ||
sudo: false | ||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
go: 1.4.2 | ||
- os: linux | ||
dist: trusty | ||
go: 1.5.4 | ||
- os: linux | ||
dist: trusty | ||
go: 1.6.2 | ||
- os: osx | ||
go: 1.6.2 | ||
|
||
# This builder does the PPA upload (and nothing else). | ||
- os: linux | ||
dist: trusty | ||
go: 1.6.2 | ||
env: PPA | ||
addons: | ||
apt: | ||
packages: | ||
- devscripts | ||
- debhelper | ||
- dput | ||
script: | ||
- go run build/ci.go travis-debsrc | ||
|
||
install: | ||
# - go get code.google.com/p/go.tools/cmd/goimports | ||
# - go get github.com/golang/lint/golint | ||
# - go get golang.org/x/tools/cmd/vet | ||
- go get golang.org/x/tools/cmd/cover | ||
before_script: | ||
# - gofmt -l -w . | ||
# - goimports -l -w . | ||
# - golint . | ||
# - go vet ./... | ||
# - go test -race ./... | ||
script: | ||
- make travis-test-with-coverage | ||
- go run build/ci.go install | ||
- go run build/ci.go test -coverage -vet | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
env: | ||
global: | ||
- secure: "U2U1AmkU4NJBgKR/uUAebQY87cNL0+1JHjnLOmmXwxYYyj5ralWb1aSuSH3qSXiT93qLBmtaUkuv9fberHVqrbAeVlztVdUsKAq7JMQH+M99iFkC9UiRMqHmtjWJ0ok4COD1sRYixxi21wb/JrMe3M1iL4QJVS61iltjHhVdM64=" | ||
sudo: false | ||
# - go run build/ci.go archive -type tar | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/e09ccdce1048c5e03445 | ||
on_success: change | ||
on_failure: always | ||
on_start: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
os: Visual Studio 2015 | ||
|
||
# Clone directly into GOPATH. | ||
clone_folder: c:\gopath\src\github.com\ethereum\go-ethereum | ||
clone_depth: 5 | ||
version: "{branch}.{build}" | ||
environment: | ||
global: | ||
GOPATH: c:\gopath | ||
|
||
# cache choco package files so we don't hit sourceforge all | ||
# the time. | ||
cache: | ||
- c:\cache | ||
|
||
install: | ||
- cmd: choco install --cache c:\cache golang mingw | find /v "Extracting " | ||
- refreshenv | ||
- cd c:\gopath\src\github.com\ethereum\go-ethereum | ||
|
||
build_script: | ||
- go run build\ci.go install | ||
|
||
test_script: | ||
- go run build\ci.go test -vet -coverage | ||
|
||
after_build: | ||
- go run build\ci.go archive -type zip | ||
|
||
artifacts: | ||
- path: geth-*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Debian Packaging | ||
---------------- | ||
|
||
Tagged releases and develop branch commits are available as installable Debian packages | ||
for Ubuntu. Packages are built for the all Ubuntu versions which are supported by | ||
Canonical: | ||
|
||
- Trusty Tahr (14.04 LTS) | ||
- Wily Werewolf (15.10) | ||
- Xenial Xerus (16.04 LTS) | ||
|
||
Packages of develop branch commits have suffix -unstable and cannot be installed alongside | ||
the stable version. Switching between release streams requires user intervention. | ||
|
||
The packages are built and served by launchpad.net. We generate a Debian source package | ||
for each distribution and upload it. Their builder picks up the source package, builds it | ||
and installs the new version into the PPA repository. Launchpad requires a valid signature | ||
by a team member for source package uploads. The signing key is stored in an environment | ||
variable which Travis CI makes available to certain builds. | ||
|
||
We want to build go-ethereum with the most recent version of Go, irrespective of the Go | ||
version that is available in the main Ubuntu repository. In order to make this possible, | ||
our PPA depends on the ~gophers/ubuntu/archive PPA. Our source package build-depends on | ||
golang-1.6, which is co-installable alongside the regular golang package. PPA dependencies | ||
can be edited at https://launchpad.net/%7Elp-fjl/+archive/ubuntu/geth-ci-testing/+edit-dependencies | ||
|
Oops, something went wrong.