github.com/linapex/ethereum-dpos-chinese@v0.0.0-20190316121959-b78b3a4a1ece/.travis.yml (about)

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