github.com/ravendb/ravendb-go-client@v0.0.0-20240229102137-4474ee7aa0fa/.travis.yml (about)

     1  # based on https://github.com/ravendb/ravendb-ruby-client/blob/v4.0/.travis.yml
     2  sudo: required
     3  dist: trusty
     4  language: go
     5  
     6  notifications:
     7    email:
     8      recipients:
     9        - kkowalczyk@gmail.com
    10      on_success: always
    11      on_failure: always
    12  
    13  go:
    14    - 1.11
    15  
    16  # TODO: maybe use latest build instead of latest stable
    17  
    18  # - wget -O RavenDB.tar.bz2 https://daily-builds.s3.amazonaws.com/RavenDB-5.1.11-linux-x64.tar.bz2
    19  
    20  before_install:
    21    - sudo apt-get -qq update
    22    - sudo apt-get install -y libunwind8 wget libicu52 libssl-dev curl unzip gettext libcurl4-openssl-dev zlib1g uuid-dev bzip2 openssl sed
    23    - mkdir ./certs; cd ./certs
    24    - sudo cp ca.crt /usr/local/share/ca-certificates/ca.crt
    25    - sudo update-ca-certificates
    26    - cd ..
    27    # when changing version, update RAVENDB_SERVER_VERSION in travis_run_tests.sh
    28    - wget -O RavenDB.tar.bz2 https://daily-builds.s3.amazonaws.com/RavenDB-5.1.11-linux-x64.tar.bz2
    29    - tar xvjf RavenDB.tar.bz2
    30    - rm RavenDB.tar.bz2
    31    - ls -lah RavenDB
    32  
    33  # Travis aborts the test if there's no output in 10 mins
    34  # go test seems to hijack os.Stdout and buffers everything until the end,
    35  # even with -v flag.
    36  # travis_wait is a "keep alive" that prints to stdout
    37  # https://docs.travis-ci.com/user/common-build-problems/#my-builds-are-timing-out
    38  
    39  script:
    40    - travis_wait 30 ./scripts/travis_run_tests.sh
    41  
    42  after_success:
    43    - bash <(curl -s https://codecov.io/bash)