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