github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/.travis.yml (about)

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