github.com/CommerciumBlockchain/go-commercium@v0.0.0-20220709212705-b46438a77516/.travis.yml (about)

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