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