github.com/avence12/go-ethereum@v1.5.10-0.20170320123548-1dfd65f6d047/.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        go: 1.5.4
     9        env:
    10          - GO15VENDOREXPERIMENT=1
    11      - os: linux
    12        dist: trusty
    13        go: 1.6.2
    14      - os: linux
    15        dist: trusty
    16        go: 1.7.5
    17  
    18      # These are the latest Go versions, only run go vet and misspell on these
    19      - os: linux
    20        dist: trusty
    21        go: 1.8
    22        script:
    23          - go run build/ci.go install
    24          - go run build/ci.go test -coverage -vet -misspell
    25  
    26      - os: osx
    27        go: 1.8
    28        script:
    29          - go run build/ci.go install
    30          - go run build/ci.go test -coverage -vet -misspell
    31  
    32      # This builder does the Ubuntu PPA and Linux Azure uploads
    33      - os: linux
    34        dist: trusty
    35        sudo: required
    36        go: 1.8
    37        env:
    38          - ubuntu-ppa
    39          - azure-linux
    40        addons:
    41          apt:
    42            packages:
    43              - devscripts
    44              - debhelper
    45              - dput
    46              - gcc-multilib
    47        script:
    48          # Build for the primary platforms that Trusty can manage
    49          - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" -upload ppa:ethereum/ethereum
    50          - go run build/ci.go install
    51          - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    52          - go run build/ci.go install -arch 386
    53          - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    54  
    55          # Switch over GCC to cross compilation (breaks 386, hence why do it here only)
    56          - 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
    57          - sudo ln -s /usr/include/asm-generic /usr/include/asm
    58  
    59          - GOARM=5 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
    60          - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    61          - GOARM=6 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
    62          - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    63          - GOARM=7 CC=arm-linux-gnueabihf-gcc go run build/ci.go install -arch arm
    64          - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    65          # ARM64 linux builds are broken in Go 1.8 (https://github.com/golang/go/issues/19137), reenable in Go 1.8.1
    66          # - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
    67          # - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    68  
    69      # This builder does the Linux Azure MIPS xgo uploads
    70      - os: linux
    71        dist: trusty
    72        sudo: required
    73        services:
    74          - docker
    75        go: 1.8
    76        env:
    77          - azure-linux-mips
    78        script:
    79          - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
    80          - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
    81          - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    82  
    83          - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
    84          - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
    85          - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    86  
    87          - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
    88          - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
    89          - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    90  
    91          - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
    92          - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
    93          - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    94  
    95      # This builder is a temporary fallback for building ARM64 while Go 1.8 is fixed
    96      - os: linux
    97        dist: trusty
    98        sudo: required
    99        go: 1.7.5
   100        env:
   101          - azure-linux-arm64-fallback
   102        addons:
   103          apt:
   104            packages:
   105              - gcc-multilib
   106        script:
   107          - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
   108          - sudo ln -s /usr/include/asm-generic /usr/include/asm
   109  
   110          - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
   111          - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   112  
   113      # This builder does the Android Maven and Azure uploads
   114      - os: linux
   115        dist: precise # Needed for the android tools
   116        addons:
   117          apt:
   118            packages:
   119              - oracle-java8-installer
   120              - oracle-java8-set-default
   121        language: android
   122        android:
   123          components:
   124            - platform-tools
   125            - tools
   126            - android-15
   127            - android-19
   128            - android-24
   129        env:
   130          - azure-android
   131          - maven-android
   132        before_install:
   133          - curl https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz | tar -xz
   134          - export PATH=`pwd`/go/bin:$PATH
   135          - export GOROOT=`pwd`/go
   136          - export GOPATH=$HOME/go
   137        script:
   138          # Build the Android archive and upload it to Maven Central and Azure
   139          - curl https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -o android-ndk-r13b.zip
   140          - unzip -q android-ndk-r13b.zip && rm android-ndk-r13b.zip
   141          - mv android-ndk-r13b $HOME
   142          - export ANDROID_NDK=$HOME/android-ndk-r13b
   143  
   144          - mkdir -p $GOPATH/src/github.com/ethereum
   145          - ln -s `pwd` $GOPATH/src/github.com/ethereum
   146          - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
   147  
   148      # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
   149      - os: osx
   150        go: 1.8
   151        env:
   152          - azure-osx
   153          - azure-ios
   154          - cocoapods-ios
   155        script:
   156          - go run build/ci.go install
   157          - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
   158  
   159          # Build the iOS framework and upload it to CocoaPods and Azure
   160          - gem uninstall cocoapods -a
   161          - gem install cocoapods
   162  
   163          - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
   164          - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
   165          - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
   166  
   167          - xctool -version
   168          - xcrun simctl list
   169  
   170          - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
   171  
   172  install:
   173    - go get golang.org/x/tools/cmd/cover
   174  script:
   175    - go run build/ci.go install
   176    - go run build/ci.go test -coverage
   177  
   178  notifications:
   179    webhooks:
   180      urls:
   181        - https://webhooks.gitter.im/e/e09ccdce1048c5e03445
   182      on_success: change
   183      on_failure: always