github.com/eliasnaur/go-ethereum@v1.6.8-0.20170717120422-6e13bd050756/.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.6
    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.3
    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.3
    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.3
    46        env:
    47          - ubuntu-ppa
    48          - azure-linux
    49        addons:
    50          apt:
    51            packages:
    52              - devscripts
    53              - debhelper
    54              - dput
    55              - gcc-multilib
    56              - fakeroot
    57        script:
    58          # Build for the primary platforms that Trusty can manage
    59          - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" -upload ppa:ethereum/ethereum
    60          - go run build/ci.go install
    61          - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    62          - go run build/ci.go install -arch 386
    63          - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    64  
    65          # Switch over GCC to cross compilation (breaks 386, hence why do it here only)
    66          - 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
    67          - sudo ln -s /usr/include/asm-generic /usr/include/asm
    68  
    69          - GOARM=5 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
    70          - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    71          - GOARM=6 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
    72          - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    73          - GOARM=7 CC=arm-linux-gnueabihf-gcc go run build/ci.go install -arch arm
    74          - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    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.3
    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 does the Android Maven and Azure uploads
   105      - os: linux
   106        dist: precise # Needed for the android tools
   107        addons:
   108          apt:
   109            packages:
   110              - oracle-java8-installer
   111              - oracle-java8-set-default
   112        language: android
   113        android:
   114          components:
   115            - platform-tools
   116            - tools
   117            - android-15
   118            - android-19
   119            - android-24
   120        env:
   121          - azure-android
   122          - maven-android
   123        before_install:
   124          - curl https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -xz
   125          - export PATH=`pwd`/go/bin:$PATH
   126          - export GOROOT=`pwd`/go
   127          - export GOPATH=$HOME/go
   128        script:
   129          # Build the Android archive and upload it to Maven Central and Azure
   130          - curl https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip -o android-ndk-r14b.zip
   131          - unzip -q android-ndk-r14b.zip && rm android-ndk-r14b.zip
   132          - mv android-ndk-r14b $HOME
   133          - export ANDROID_NDK=$HOME/android-ndk-r14b
   134  
   135          - mkdir -p $GOPATH/src/github.com/ethereum
   136          - ln -s `pwd` $GOPATH/src/github.com/ethereum
   137          - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
   138  
   139      # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
   140      - os: osx
   141        go: 1.8.3
   142        env:
   143          - azure-osx
   144          - azure-ios
   145          - cocoapods-ios
   146        script:
   147          - go run build/ci.go install
   148          - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
   149  
   150          # Build the iOS framework and upload it to CocoaPods and Azure
   151          - gem uninstall cocoapods -a -x
   152          - gem install cocoapods
   153  
   154          - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
   155          - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
   156          - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
   157  
   158          - xctool -version
   159          - xcrun simctl list
   160  
   161          - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
   162  
   163      # This builder does the Azure archive purges to avoid accumulating junk
   164      - os: linux
   165        dist: trusty
   166        sudo: required
   167        go: 1.8.3
   168        env:
   169          - azure-purge
   170        script:
   171          - go run build/ci.go purge -store gethstore/builds -days 14
   172  
   173  install:
   174    - go get golang.org/x/tools/cmd/cover
   175  script:
   176    - go run build/ci.go install
   177    - go run build/ci.go test -coverage
   178  
   179  notifications:
   180    webhooks:
   181      urls:
   182        - https://webhooks.gitter.im/e/e09ccdce1048c5e03445
   183      on_success: change
   184      on_failure: always