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