gitlab.com/yannislg/go-pulse@v0.0.0-20210722055913-a3e24e95638d/.travis.yml (about) 1 language: go 2 go_import_path: gitlab.com/yannislg/go-pulse 3 sudo: false 4 jobs: 5 allow_failures: 6 - stage: build 7 os: osx 8 go: 1.14.x 9 env: 10 - azure-osx 11 - azure-ios 12 - cocoapods-ios 13 14 include: 15 # This builder only tests code linters on latest version of Go 16 - stage: lint 17 os: linux 18 dist: xenial 19 go: 1.14.x 20 env: 21 - lint 22 git: 23 submodules: false # avoid cloning ethereum/tests 24 script: 25 - go run build/ci.go lint 26 27 - stage: build 28 os: linux 29 dist: xenial 30 go: 1.11.x 31 env: 32 - GO111MODULE=on 33 script: 34 - go run build/ci.go install 35 - go run build/ci.go test -coverage $TEST_PACKAGES 36 37 - stage: build 38 os: linux 39 dist: xenial 40 go: 1.12.x 41 env: 42 - GO111MODULE=on 43 script: 44 - go run build/ci.go install 45 - go run build/ci.go test -coverage $TEST_PACKAGES 46 47 - stage: build 48 os: linux 49 dist: xenial 50 go: 1.13.x 51 env: 52 - GO111MODULE=on 53 script: 54 - go run build/ci.go install 55 - go run build/ci.go test -coverage $TEST_PACKAGES 56 57 # These are the latest Go versions. 58 - stage: build 59 os: linux 60 arch: amd64 61 dist: xenial 62 go: 1.14.x 63 env: 64 - GO111MODULE=on 65 script: 66 - go run build/ci.go install 67 - go run build/ci.go test -coverage $TEST_PACKAGES 68 69 - stage: build 70 if: type = pull_request 71 os: linux 72 arch: arm64 73 dist: xenial 74 go: 1.14.x 75 env: 76 - GO111MODULE=on 77 script: 78 - go run build/ci.go install 79 - go run build/ci.go test -coverage $TEST_PACKAGES 80 81 - stage: build 82 os: osx 83 osx_image: xcode11.3 84 go: 1.14.x 85 env: 86 - GO111MODULE=on 87 script: 88 - echo "Increase the maximum number of open file descriptors on macOS" 89 - NOFILE=20480 90 - sudo sysctl -w kern.maxfiles=$NOFILE 91 - sudo sysctl -w kern.maxfilesperproc=$NOFILE 92 - sudo launchctl limit maxfiles $NOFILE $NOFILE 93 - sudo launchctl limit maxfiles 94 - ulimit -S -n $NOFILE 95 - ulimit -n 96 - unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703 97 - go run build/ci.go install 98 - go run build/ci.go test -coverage $TEST_PACKAGES 99 100 # This builder does the Ubuntu PPA upload 101 - stage: build 102 if: type = push 103 os: linux 104 dist: xenial 105 go: 1.14.x 106 env: 107 - ubuntu-ppa 108 - GO111MODULE=on 109 git: 110 submodules: false # avoid cloning ethereum/tests 111 addons: 112 apt: 113 packages: 114 - devscripts 115 - debhelper 116 - dput 117 - fakeroot 118 - python-bzrlib 119 - python-paramiko 120 script: 121 - echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts 122 - go run build/ci.go debsrc -goversion 1.14.2 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" 123 124 # This builder does the Linux Azure uploads 125 - stage: build 126 if: type = push 127 os: linux 128 dist: xenial 129 sudo: required 130 go: 1.14.x 131 env: 132 - azure-linux 133 - GO111MODULE=on 134 git: 135 submodules: false # avoid cloning ethereum/tests 136 addons: 137 apt: 138 packages: 139 - gcc-multilib 140 script: 141 # Build for the primary platforms that Trusty can manage 142 - go run build/ci.go install 143 - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 144 - go run build/ci.go install -arch 386 145 - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 146 147 # Switch over GCC to cross compilation (breaks 386, hence why do it here only) 148 - 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 149 - sudo ln -s /usr/include/asm-generic /usr/include/asm 150 151 - GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc 152 - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 153 - GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc 154 - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 155 - GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc 156 - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 157 - go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc 158 - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 159 160 # This builder does the Linux Azure MIPS xgo uploads 161 - stage: build 162 if: type = push 163 os: linux 164 dist: xenial 165 services: 166 - docker 167 go: 1.14.x 168 env: 169 - azure-linux-mips 170 - GO111MODULE=on 171 git: 172 submodules: false # avoid cloning ethereum/tests 173 script: 174 - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v 175 - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done 176 - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 177 178 - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v 179 - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done 180 - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 181 182 - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v 183 - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done 184 - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 185 186 - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v 187 - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done 188 - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds 189 190 # This builder does the Android Maven and Azure uploads 191 - stage: build 192 if: type = push 193 os: linux 194 dist: xenial 195 addons: 196 apt: 197 packages: 198 - oracle-java8-installer 199 - oracle-java8-set-default 200 language: android 201 android: 202 components: 203 - platform-tools 204 - tools 205 - android-15 206 - android-19 207 - android-24 208 env: 209 - azure-android 210 - maven-android 211 - GO111MODULE=on 212 git: 213 submodules: false # avoid cloning ethereum/tests 214 before_install: 215 - curl https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz | tar -xz 216 - export PATH=`pwd`/go/bin:$PATH 217 - export GOROOT=`pwd`/go 218 - export GOPATH=$HOME/go 219 script: 220 # Build the Android archive and upload it to Maven Central and Azure 221 - curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip 222 - unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip 223 - mv android-ndk-r19b $ANDROID_HOME/ndk-bundle 224 225 - mkdir -p $GOPATH/src/github.com/ethereum 226 - ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum 227 - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds 228 229 # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads 230 - stage: build 231 if: type = push 232 os: osx 233 go: 1.14.x 234 env: 235 - azure-osx 236 - azure-ios 237 - cocoapods-ios 238 - GO111MODULE=on 239 git: 240 submodules: false # avoid cloning ethereum/tests 241 script: 242 - go run build/ci.go install 243 - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds 244 245 # Build the iOS framework and upload it to CocoaPods and Azure 246 - gem uninstall cocoapods -a -x 247 - gem install cocoapods 248 249 - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak 250 - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb 251 - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi 252 253 - xctool -version 254 - xcrun simctl list 255 256 # Workaround for https://github.com/golang/go/issues/23749 257 - export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc' 258 - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds 259 260 # This builder does the Azure archive purges to avoid accumulating junk 261 - stage: build 262 if: type = cron 263 os: linux 264 dist: xenial 265 go: 1.14.x 266 env: 267 - azure-purge 268 - GO111MODULE=on 269 git: 270 submodules: false # avoid cloning ethereum/tests 271 script: 272 - go run build/ci.go purge -store gethstore/builds -days 14