.travis.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. cache:
  59. directories:
  60. - $HOME/.android.platforms
  61. - $HOME/.cocoapods
  62. script:
  63. - go run build/ci.go install
  64. - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
  65. # Build the Android archive and upload it to Maven Central and Azure
  66. - brew update
  67. - brew install android-sdk maven gpg
  68. - alias gpg="gpg2"
  69. - export ANDROID_HOME=/usr/local/opt/android-sdk
  70. - mkdir -p $ANDROID_HOME/platforms
  71. - mv -f $HOME/.android.platforms $ANDROID_HOME/platforms
  72. - echo "y" | android update sdk --no-ui --filter platform
  73. - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
  74. - mv -f $ANDROID_HOME/platforms $HOME/.android.platforms
  75. # Build the iOS framework and upload it to CocoaPods and Azure
  76. - gem uninstall cocoapods -a
  77. - gem install cocoapods --pre
  78. - travis_wait 30 go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
  79. install:
  80. - go get golang.org/x/tools/cmd/cover
  81. script:
  82. - go run build/ci.go install
  83. - go run build/ci.go test -coverage -vet
  84. notifications:
  85. webhooks:
  86. urls:
  87. - https://webhooks.gitter.im/e/e09ccdce1048c5e03445
  88. on_success: change
  89. on_failure: always