.travis.yml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. sudo: required
  9. go: 1.7.5
  10. script:
  11. - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
  12. - sudo modprobe fuse
  13. - sudo chmod 666 /dev/fuse
  14. - sudo chown root:$USER /etc/fuse.conf
  15. # These are the latest Go versions, only run go vet and misspell on these
  16. - os: linux
  17. dist: trusty
  18. sudo: required
  19. go: 1.8
  20. script:
  21. - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
  22. - sudo modprobe fuse
  23. - sudo chmod 666 /dev/fuse
  24. - sudo chown root:$USER /etc/fuse.conf
  25. - go run build/ci.go install
  26. - go run build/ci.go test -coverage -misspell
  27. - os: osx
  28. go: 1.8
  29. sudo: required
  30. script:
  31. - brew update
  32. - brew install caskroom/cask/brew-cask
  33. - brew cask install osxfuse
  34. - go run build/ci.go install
  35. - go run build/ci.go test -coverage -misspell
  36. # This builder does the Ubuntu PPA and Linux Azure uploads
  37. - os: linux
  38. dist: trusty
  39. sudo: required
  40. go: 1.8
  41. env:
  42. - ubuntu-ppa
  43. - azure-linux
  44. addons:
  45. apt:
  46. packages:
  47. - devscripts
  48. - debhelper
  49. - dput
  50. - gcc-multilib
  51. script:
  52. # Build for the primary platforms that Trusty can manage
  53. - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" -upload ppa:ethereum/ethereum
  54. - go run build/ci.go install
  55. - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  56. - go run build/ci.go install -arch 386
  57. - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  58. # Switch over GCC to cross compilation (breaks 386, hence why do it here only)
  59. - 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
  60. - sudo ln -s /usr/include/asm-generic /usr/include/asm
  61. - GOARM=5 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
  62. - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  63. - GOARM=6 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
  64. - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  65. - GOARM=7 CC=arm-linux-gnueabihf-gcc go run build/ci.go install -arch arm
  66. - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  67. # ARM64 linux builds are broken in Go 1.8 (https://github.com/golang/go/issues/19137), reenable in Go 1.8.1
  68. # - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
  69. # - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  70. # This builder does the Linux Azure MIPS xgo uploads
  71. - os: linux
  72. dist: trusty
  73. sudo: required
  74. services:
  75. - docker
  76. go: 1.8
  77. env:
  78. - azure-linux-mips
  79. script:
  80. - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
  81. - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
  82. - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  83. - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
  84. - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
  85. - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  86. - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
  87. - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
  88. - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  89. - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
  90. - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
  91. - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  92. # This builder is a temporary fallback for building ARM64 while Go 1.8 is fixed
  93. - os: linux
  94. dist: trusty
  95. sudo: required
  96. go: 1.7.5
  97. env:
  98. - azure-linux-arm64-fallback
  99. addons:
  100. apt:
  101. packages:
  102. - gcc-multilib
  103. script:
  104. - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
  105. - sudo ln -s /usr/include/asm-generic /usr/include/asm
  106. - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
  107. - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
  108. # This builder does the Android Maven and Azure uploads
  109. - os: linux
  110. dist: precise # Needed for the android tools
  111. addons:
  112. apt:
  113. packages:
  114. - oracle-java8-installer
  115. - oracle-java8-set-default
  116. language: android
  117. android:
  118. components:
  119. - platform-tools
  120. - tools
  121. - android-15
  122. - android-19
  123. - android-24
  124. env:
  125. - azure-android
  126. - maven-android
  127. before_install:
  128. - curl https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz | tar -xz
  129. - export PATH=`pwd`/go/bin:$PATH
  130. - export GOROOT=`pwd`/go
  131. - export GOPATH=$HOME/go
  132. script:
  133. # Build the Android archive and upload it to Maven Central and Azure
  134. - curl https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -o android-ndk-r13b.zip
  135. - unzip -q android-ndk-r13b.zip && rm android-ndk-r13b.zip
  136. - mv android-ndk-r13b $HOME
  137. - export ANDROID_NDK=$HOME/android-ndk-r13b
  138. - mkdir -p $GOPATH/src/github.com/ethereum
  139. - ln -s `pwd` $GOPATH/src/github.com/ethereum
  140. - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
  141. # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
  142. - os: osx
  143. go: 1.8
  144. env:
  145. - azure-osx
  146. - azure-ios
  147. - cocoapods-ios
  148. script:
  149. - go run build/ci.go install
  150. - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
  151. # Build the iOS framework and upload it to CocoaPods and Azure
  152. - gem uninstall cocoapods -a
  153. - gem install cocoapods
  154. - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
  155. - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
  156. - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
  157. - xctool -version
  158. - xcrun simctl list
  159. - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
  160. install:
  161. - go get golang.org/x/tools/cmd/cover
  162. script:
  163. - go run build/ci.go install
  164. - go run build/ci.go test -coverage
  165. notifications:
  166. webhooks:
  167. urls:
  168. - https://webhooks.gitter.im/e/e09ccdce1048c5e03445
  169. on_success: change
  170. on_failure: always