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