github.com/ylsGit/go-ethereum@v1.6.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.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        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          - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
    75          - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    76  
    77      # This builder does the Linux Azure MIPS xgo uploads
    78      - os: linux
    79        dist: trusty
    80        sudo: required
    81        services:
    82          - docker
    83        go: 1.8.3
    84        env:
    85          - azure-linux-mips
    86        script:
    87          - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
    88          - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
    89          - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    90  
    91          - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
    92          - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
    93          - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    94  
    95          - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
    96          - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
    97          - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
    98  
    99          - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
   100          - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
   101          - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   102  
   103      # This builder does the Android Maven and Azure uploads
   104      - os: linux
   105        dist: precise # Needed for the android tools
   106        addons:
   107          apt:
   108            packages:
   109              - oracle-java8-installer
   110              - oracle-java8-set-default
   111        language: android
   112        android:
   113          components:
   114            - platform-tools
   115            - tools
   116            - android-15
   117            - android-19
   118            - android-24
   119        env:
   120          - azure-android
   121          - maven-android
   122        before_install:
   123          - curl https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -xz
   124          - export PATH=`pwd`/go/bin:$PATH
   125          - export GOROOT=`pwd`/go
   126          - export GOPATH=$HOME/go
   127        script:
   128          # Build the Android archive and upload it to Maven Central and Azure
   129          - curl https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip -o android-ndk-r14b.zip
   130          - unzip -q android-ndk-r14b.zip && rm android-ndk-r14b.zip
   131          - mv android-ndk-r14b $HOME
   132          - export ANDROID_NDK=$HOME/android-ndk-r14b
   133  
   134          - mkdir -p $GOPATH/src/github.com/ethereum
   135          - ln -s `pwd` $GOPATH/src/github.com/ethereum
   136          - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
   137  
   138      # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
   139      - os: osx
   140        go: 1.8.3
   141        env:
   142          - azure-osx
   143          - azure-ios
   144          - cocoapods-ios
   145        script:
   146          - go run build/ci.go install
   147          - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
   148  
   149          # Build the iOS framework and upload it to CocoaPods and Azure
   150          - gem uninstall cocoapods -a -x
   151          - gem install cocoapods
   152  
   153          - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
   154          - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
   155          - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
   156  
   157          - xctool -version
   158          - xcrun simctl list
   159  
   160          - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
   161  
   162      # This builder does the Azure archive purges to avoid accumulating junk
   163      - os: linux
   164        dist: trusty
   165        sudo: required
   166        go: 1.8.3
   167        env:
   168          - azure-purge
   169        script:
   170          - go run build/ci.go purge -store gethstore/builds -days 14
   171  
   172  install:
   173    - go get golang.org/x/tools/cmd/cover
   174  script:
   175    - go run build/ci.go install
   176    - go run build/ci.go test -coverage
   177  
   178  notifications:
   179    webhooks:
   180      urls:
   181        - https://webhooks.gitter.im/e/e09ccdce1048c5e03445
   182      on_success: change
   183      on_failure: always