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