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