github.com/gojoychain/go-geth@v1.8.22/.travis.yml (about) 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.10.x 10 script: 11 - sudo modprobe fuse 12 - sudo chmod 666 /dev/fuse 13 - sudo chown root:$USER /etc/fuse.conf 14 - go run build/ci.go install 15 - go run build/ci.go test -coverage $TEST_PACKAGES 16 17 # These are the latest Go versions. 18 - os: linux 19 dist: trusty 20 sudo: required 21 go: 1.11.x 22 script: 23 - sudo modprobe fuse 24 - sudo chmod 666 /dev/fuse 25 - sudo chown root:$USER /etc/fuse.conf 26 - go run build/ci.go install 27 - go run build/ci.go test -coverage $TEST_PACKAGES 28 29 - os: osx 30 go: 1.11.x 31 script: 32 - echo "Increase the maximum number of open file descriptors on macOS" 33 - NOFILE=20480 34 - sudo sysctl -w kern.maxfiles=$NOFILE 35 - sudo sysctl -w kern.maxfilesperproc=$NOFILE 36 - sudo launchctl limit maxfiles $NOFILE $NOFILE 37 - sudo launchctl limit maxfiles 38 - ulimit -S -n $NOFILE 39 - ulimit -n 40 - unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703 41 - go run build/ci.go install 42 - go run build/ci.go test -coverage $TEST_PACKAGES 43 44 # This builder only tests code linters on latest version of Go 45 - os: linux 46 dist: trusty 47 go: 1.11.x 48 env: 49 - lint 50 git: 51 submodules: false # avoid cloning ethereum/tests 52 script: 53 - go run build/ci.go lint 54 55 # This builder does the Ubuntu PPA upload 56 - if: type = push 57 os: linux 58 dist: trusty 59 go: 1.11.x 60 env: 61 - ubuntu-ppa 62 git: 63 submodules: false # avoid cloning ethereum/tests 64 addons: 65 apt: 66 packages: 67 - devscripts 68 - debhelper 69 - dput 70 - fakeroot 71 script: 72 - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" -upload ppa:ethereum/ethereum 73 74 # This builder does the Linux Azure uploads 75 - if: type = push 76 os: linux 77 dist: trusty 78 sudo: required 79 go: 1.11.x 80 env: 81 - azure-linux 82 git: 83 submodules: false # avoid cloning ethereum/tests 84 addons: 85 apt: 86 packages: 87 - gcc-multilib 88 script: 89 # Build for the primary platforms that Trusty can manage 90 - go run build/ci.go install 91 - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 92 - go run build/ci.go install -arch 386 93 - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 94 95 # Switch over GCC to cross compilation (breaks 386, hence why do it here only) 96 - 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 97 - sudo ln -s /usr/include/asm-generic /usr/include/asm 98 99 - GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc 100 - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 101 - GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc 102 - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 103 - GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc 104 - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 105 - go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc 106 - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 107 108 # This builder does the Linux Azure MIPS xgo uploads 109 - if: type = push 110 os: linux 111 dist: trusty 112 services: 113 - docker 114 go: 1.11.x 115 env: 116 - azure-linux-mips 117 git: 118 submodules: false # avoid cloning ethereum/tests 119 script: 120 - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v 121 - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done 122 - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 123 124 - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v 125 - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done 126 - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 127 128 - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v 129 - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done 130 - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 131 132 - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v 133 - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done 134 - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 135 136 # This builder does the Android Maven and Azure uploads 137 - if: type = push 138 os: linux 139 dist: trusty 140 addons: 141 apt: 142 packages: 143 - oracle-java8-installer 144 - oracle-java8-set-default 145 language: android 146 android: 147 components: 148 - platform-tools 149 - tools 150 - android-15 151 - android-19 152 - android-24 153 env: 154 - azure-android 155 - maven-android 156 git: 157 submodules: false # avoid cloning ethereum/tests 158 before_install: 159 - curl https://storage.googleapis.com/golang/go1.11.5.linux-amd64.tar.gz | tar -xz 160 - export PATH=`pwd`/go/bin:$PATH 161 - export GOROOT=`pwd`/go 162 - export GOPATH=$HOME/go 163 script: 164 # Build the Android archive and upload it to Maven Central and Azure 165 - curl https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip -o android-ndk-r17b.zip 166 - unzip -q android-ndk-r17b.zip && rm android-ndk-r17b.zip 167 - mv android-ndk-r17b $HOME 168 - export ANDROID_NDK=$HOME/android-ndk-r17b 169 170 - mkdir -p $GOPATH/src/github.com/ethereum 171 - ln -s `pwd` $GOPATH/src/github.com/ethereum 172 - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds 173 174 # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads 175 - if: type = push 176 os: osx 177 go: 1.11.x 178 env: 179 - azure-osx 180 - azure-ios 181 - cocoapods-ios 182 git: 183 submodules: false # avoid cloning ethereum/tests 184 script: 185 - go run build/ci.go install 186 - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds 187 188 # Build the iOS framework and upload it to CocoaPods and Azure 189 - gem uninstall cocoapods -a -x 190 - gem install cocoapods 191 192 - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak 193 - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb 194 - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi 195 196 - xctool -version 197 - xcrun simctl list 198 199 # Workaround for https://github.com/golang/go/issues/23749 200 - export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc' 201 - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds 202 203 # This builder does the Azure archive purges to avoid accumulating junk 204 - if: type = cron 205 os: linux 206 dist: trusty 207 go: 1.11.x 208 env: 209 - azure-purge 210 git: 211 submodules: false # avoid cloning ethereum/tests 212 script: 213 - go run build/ci.go purge -store gethstore/builds -days 14