github.com/ednowain/go-ethereum@v1.9.6/.travis.yml (about)

     1  language: go
     2  go_import_path: github.com/ethereum/go-ethereum
     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.12.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        script:
    79          - echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
    80          - go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>"
    81  
    82      # This builder does the Linux Azure uploads
    83      - stage: build
    84        if: type = push
    85        os: linux
    86        dist: xenial
    87        sudo: required
    88        go: 1.13.x
    89        env:
    90          - azure-linux
    91        git:
    92          submodules: false # avoid cloning ethereum/tests
    93        addons:
    94          apt:
    95            packages:
    96              - gcc-multilib
    97        script:
    98          # Build for the primary platforms that Trusty can manage
    99          - go run build/ci.go install
   100          - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   101          - go run build/ci.go install -arch 386
   102          - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   103  
   104          # Switch over GCC to cross compilation (breaks 386, hence why do it here only)
   105          - 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
   106          - sudo ln -s /usr/include/asm-generic /usr/include/asm
   107  
   108          - GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
   109          - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   110          - GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
   111          - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   112          - GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc
   113          - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   114          - go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc
   115          - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   116  
   117      # This builder does the Linux Azure MIPS xgo uploads
   118      - stage: build
   119        if: type = push
   120        os: linux
   121        dist: xenial
   122        services:
   123          - docker
   124        go: 1.13.x
   125        env:
   126          - azure-linux-mips
   127        git:
   128          submodules: false # avoid cloning ethereum/tests
   129        script:
   130          - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
   131          - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
   132          - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   133  
   134          - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
   135          - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
   136          - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   137  
   138          - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
   139          - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
   140          - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   141  
   142          - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
   143          - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
   144          - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   145  
   146      # This builder does the Android Maven and Azure uploads
   147      - stage: build
   148        if: type = push
   149        os: linux
   150        dist: xenial
   151        addons:
   152          apt:
   153            packages:
   154              - oracle-java8-installer
   155              - oracle-java8-set-default
   156        language: android
   157        android:
   158          components:
   159            - platform-tools
   160            - tools
   161            - android-15
   162            - android-19
   163            - android-24
   164        env:
   165          - azure-android
   166          - maven-android
   167        git:
   168          submodules: false # avoid cloning ethereum/tests
   169        before_install:
   170          - curl https://dl.google.com/go/go1.13.linux-amd64.tar.gz | tar -xz
   171          - export PATH=`pwd`/go/bin:$PATH
   172          - export GOROOT=`pwd`/go
   173          - export GOPATH=$HOME/go
   174        script:
   175          # Build the Android archive and upload it to Maven Central and Azure
   176          - curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip
   177          - unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip
   178          - mv android-ndk-r19b $ANDROID_HOME/ndk-bundle
   179  
   180          - mkdir -p $GOPATH/src/github.com/ethereum
   181          - ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum
   182          - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
   183  
   184      # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
   185      - stage: build
   186        if: type = push
   187        os: osx
   188        go: 1.13.x
   189        env:
   190          - azure-osx
   191          - azure-ios
   192          - cocoapods-ios
   193        git:
   194          submodules: false # avoid cloning ethereum/tests
   195        script:
   196          - go run build/ci.go install
   197          - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
   198  
   199          # Build the iOS framework and upload it to CocoaPods and Azure
   200          - gem uninstall cocoapods -a -x
   201          - gem install cocoapods
   202  
   203          - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
   204          - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
   205          - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
   206  
   207          - xctool -version
   208          - xcrun simctl list
   209  
   210          # Workaround for https://github.com/golang/go/issues/23749
   211          - export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
   212          - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
   213  
   214      # This builder does the Azure archive purges to avoid accumulating junk
   215      - stage: build
   216        if: type = cron
   217        os: linux
   218        dist: xenial
   219        go: 1.13.x
   220        env:
   221          - azure-purge
   222        git:
   223          submodules: false # avoid cloning ethereum/tests
   224        script:
   225          - go run build/ci.go purge -store gethstore/builds -days 14