github.com/Debrief-BC/go-debrief@v0.0.0-20200420203408-0c26ca968123/.travis.yml (about)

     1  language: go
     2  go_import_path: github.com/Debrief-BC/go-debrief
     3  sudo: false
     4  jobs:
     5    allow_failures:
     6      - stage: build
     7        os: osx
     8        go: 1.13.x
     9        env:
    10          - azure-osx
    11          - azure-ios
    12          - cocoapods-ios
    13  
    14    include:
    15      # This builder only tests code linters on latest version of Go
    16      - stage: lint
    17        os: linux
    18        dist: xenial
    19        go: 1.13.x
    20        env:
    21          - lint
    22        git:
    23          submodules: false # avoid cloning ethereum/tests
    24        script:
    25          - go run build/ci.go lint
    26  
    27      - stage: build
    28        os: linux
    29        dist: xenial
    30        go: 1.11.x
    31        env:
    32          - GO111MODULE=on
    33        script:
    34          - go run build/ci.go install
    35          - go run build/ci.go test -coverage $TEST_PACKAGES
    36  
    37      - stage: build
    38        os: linux
    39        dist: xenial
    40        go: 1.12.x
    41        env:
    42          - GO111MODULE=on
    43        script:
    44          - go run build/ci.go install
    45          - go run build/ci.go test -coverage $TEST_PACKAGES
    46  
    47      # These are the latest Go versions.
    48      - stage: build
    49        os: linux
    50        arch: amd64
    51        dist: xenial
    52        go: 1.13.x
    53        script:
    54          - go run build/ci.go install
    55          - go run build/ci.go test -coverage $TEST_PACKAGES
    56  
    57      - stage: build
    58        if: type = pull_request
    59        os: linux
    60        arch: arm64
    61        dist: xenial
    62        go: 1.13.x
    63        script:
    64          - go run build/ci.go install
    65          - go run build/ci.go test -coverage $TEST_PACKAGES
    66  
    67      - stage: build
    68        os: osx
    69        osx_image: xcode11.3
    70        go: 1.13.x
    71        script:
    72          - echo "Increase the maximum number of open file descriptors on macOS"
    73          - NOFILE=20480
    74          - sudo sysctl -w kern.maxfiles=$NOFILE
    75          - sudo sysctl -w kern.maxfilesperproc=$NOFILE
    76          - sudo launchctl limit maxfiles $NOFILE $NOFILE
    77          - sudo launchctl limit maxfiles
    78          - ulimit -S -n $NOFILE
    79          - ulimit -n
    80          - unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703
    81          - go run build/ci.go install
    82          - go run build/ci.go test -coverage $TEST_PACKAGES
    83  
    84      # This builder does the Ubuntu PPA upload
    85      - stage: build
    86        if: type = push
    87        os: linux
    88        dist: xenial
    89        go: 1.13.x
    90        env:
    91          - ubuntu-ppa
    92        git:
    93          submodules: false # avoid cloning ethereum/tests
    94        addons:
    95          apt:
    96            packages:
    97              - devscripts
    98              - debhelper
    99              - dput
   100              - fakeroot
   101              - python-bzrlib
   102              - python-paramiko
   103        script:
   104          - echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
   105          - go run build/ci.go debsrc -goversion 1.13.8 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>"
   106  
   107      # This builder does the Linux Azure uploads
   108      - stage: build
   109        if: type = push
   110        os: linux
   111        dist: xenial
   112        sudo: required
   113        go: 1.13.x
   114        env:
   115          - azure-linux
   116        git:
   117          submodules: false # avoid cloning ethereum/tests
   118        addons:
   119          apt:
   120            packages:
   121              - gcc-multilib
   122        script:
   123          # Build for the primary platforms that Trusty can manage
   124          - go run build/ci.go install
   125          - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   126          - go run build/ci.go install -arch 386
   127          - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   128  
   129          # Switch over GCC to cross compilation (breaks 386, hence why do it here only)
   130          - 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
   131          - sudo ln -s /usr/include/asm-generic /usr/include/asm
   132  
   133          - GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
   134          - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   135          - GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
   136          - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   137          - GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc
   138          - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   139          - go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc
   140          - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   141  
   142      # This builder does the Linux Azure MIPS xgo uploads
   143      - stage: build
   144        if: type = push
   145        os: linux
   146        dist: xenial
   147        services:
   148          - docker
   149        go: 1.13.x
   150        env:
   151          - azure-linux-mips
   152        git:
   153          submodules: false # avoid cloning ethereum/tests
   154        script:
   155          - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
   156          - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
   157          - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   158  
   159          - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
   160          - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
   161          - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   162  
   163          - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
   164          - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
   165          - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   166  
   167          - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
   168          - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
   169          - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
   170  
   171      # This builder does the Android Maven and Azure uploads
   172      - stage: build
   173        if: type = push
   174        os: linux
   175        dist: xenial
   176        addons:
   177          apt:
   178            packages:
   179              - oracle-java8-installer
   180              - oracle-java8-set-default
   181        language: android
   182        android:
   183          components:
   184            - platform-tools
   185            - tools
   186            - android-15
   187            - android-19
   188            - android-24
   189        env:
   190          - azure-android
   191          - maven-android
   192        git:
   193          submodules: false # avoid cloning ethereum/tests
   194        before_install:
   195          - curl https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz | tar -xz
   196          - export PATH=`pwd`/go/bin:$PATH
   197          - export GOROOT=`pwd`/go
   198          - export GOPATH=$HOME/go
   199        script:
   200          # Build the Android archive and upload it to Maven Central and Azure
   201          - curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip
   202          - unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip
   203          - mv android-ndk-r19b $ANDROID_HOME/ndk-bundle
   204  
   205          - mkdir -p $GOPATH/src/github.com/ethereum
   206          - ln -s `pwd` $GOPATH/src/github.com/Debrief-BC/go-debrief
   207          - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
   208  
   209      # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
   210      - stage: build
   211        if: type = push
   212        os: osx
   213        go: 1.13.x
   214        env:
   215          - azure-osx
   216          - azure-ios
   217          - cocoapods-ios
   218        git:
   219          submodules: false # avoid cloning ethereum/tests
   220        script:
   221          - go run build/ci.go install
   222          - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
   223  
   224          # Build the iOS framework and upload it to CocoaPods and Azure
   225          - gem uninstall cocoapods -a -x
   226          - gem install cocoapods
   227  
   228          - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
   229          - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
   230          - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
   231  
   232          - xctool -version
   233          - xcrun simctl list
   234  
   235          # Workaround for https://github.com/golang/go/issues/23749
   236          - export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
   237          - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
   238  
   239      # This builder does the Azure archive purges to avoid accumulating junk
   240      - stage: build
   241        if: type = cron
   242        os: linux
   243        dist: xenial
   244        go: 1.13.x
   245        env:
   246          - azure-purge
   247        git:
   248          submodules: false # avoid cloning ethereum/tests
   249        script:
   250          - go run build/ci.go purge -store gethstore/builds -days 14