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