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