.travis.yml 7.2 KB

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