.travis.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. language: go
  2. go_import_path: github.com/ethereum/go-ethereum
  3. sudo: false
  4. matrix:
  5. include:
  6. - os: linux
  7. dist: trusty
  8. go: 1.5.4
  9. env:
  10. - GO15VENDOREXPERIMENT=1
  11. - os: linux
  12. dist: trusty
  13. go: 1.6.2
  14. - os: linux
  15. dist: trusty
  16. go: 1.7
  17. - os: osx
  18. go: 1.7
  19. # This builder does the Ubuntu PPA and Linux Azure uploads
  20. - os: linux
  21. dist: trusty
  22. sudo: required
  23. go: 1.7
  24. env:
  25. - ubuntu-ppa
  26. - azure-linux
  27. addons:
  28. apt:
  29. packages:
  30. - devscripts
  31. - debhelper
  32. - dput
  33. - gcc-multilib
  34. script:
  35. # Build for the primary platforms that Trusty can manage
  36. - go run build/ci.go debsrc -signer "Felix Lange (Geth CI Testing Key) <fjl@twurst.com>" -upload ppa:lp-fjl/geth-ci-testing
  37. - go run build/ci.go install
  38. - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  39. - go run build/ci.go install -arch 386
  40. - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  41. # Switch over GCC to cross compilation (breaks 386, hence why do it here only)
  42. - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
  43. - sudo ln -s /usr/include/asm-generic /usr/include/asm
  44. - GOARM=5 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
  45. - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  46. - GOARM=6 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
  47. - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  48. - GOARM=7 CC=arm-linux-gnueabihf-gcc go run build/ci.go install -arch arm
  49. - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  50. - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
  51. - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  52. # This builder does the OSX Azure, Android Maven and Azure and iOS CocoaPods and Azure uploads
  53. - os: osx
  54. go: 1.7
  55. env:
  56. - azure-osx
  57. - mobile
  58. script:
  59. - go run build/ci.go install
  60. - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
  61. # Build the iOS framework and upload it to CocoaPods and Azure
  62. - gem install cocoapods --pre
  63. - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
  64. # Build the Android archive and upload it to Maven Central and Azure
  65. - brew update
  66. - brew install android-sdk maven
  67. - export ANDROID_HOME=/usr/local/opt/android-sdk
  68. - echo "y" | android update sdk --no-ui --filter platform
  69. - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
  70. install:
  71. - go get golang.org/x/tools/cmd/cover
  72. script:
  73. - go run build/ci.go install
  74. - go run build/ci.go test -coverage -vet
  75. notifications:
  76. webhooks:
  77. urls:
  78. - https://webhooks.gitter.im/e/e09ccdce1048c5e03445
  79. on_success: change
  80. on_failure: always