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