git.pirl.io/community/pirl@v0.0.0-20201111064343-9d3d31ff74be/.travis.yml (about)

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