github.com/aergoio/aergo@v1.3.1/.travis.yml (about)

     1  language: go
     2  
     3  os:
     4    - linux
     5    - osx
     6  
     7  go:
     8    - 1.12.x
     9  
    10  before_install:
    11    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go get -t github.com/codeclimate/test-reporter; fi
    12  
    13  install:
    14    - make all polaris colaris
    15  
    16  before_script:
    17    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then test-reporter before-build; fi
    18  
    19  script:
    20    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make cover-check; fi
    21  
    22  after_script:
    23    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
    24  
    25  before_deploy:
    26    - AERGO_VERSION="${TRAVIS_TAG:1}" 
    27    - mkdir -p release
    28    - mkdir -p aergo/${AERGO_VERSION}/bin
    29    - mkdir -p aergo/${AERGO_VERSION}/lib
    30    - mv bin/{aergocli,aergoluac,aergosvr,brick} aergo/${AERGO_VERSION}/bin
    31    - cp libtool/lib/libgmp* aergo/${AERGO_VERSION}/lib
    32    - tar -zcvf release/aergo-${AERGO_VERSION}.${TRAVIS_OS_NAME}.tar.gz aergo/${AERGO_VERSION}
    33    - mkdir -p polaris/${AERGO_VERSION}/bin
    34    - mkdir -p polaris/${AERGO_VERSION}/lib
    35    - mv bin/{polaris,colaris} polaris/${AERGO_VERSION}/bin
    36    - cp libtool/lib/libgmp* polaris/${AERGO_VERSION}/lib
    37    - tar -zcvf release/polaris-${AERGO_VERSION}.${TRAVIS_OS_NAME}.tar.gz polaris/${AERGO_VERSION}
    38  
    39  deploy:
    40    provider: releases
    41    api_key:
    42      secure: uGFdnqc23aUqoZD9bZqQsGl4KiHAH6WkUrH9mrdgzsb5sXaChhX0J9klJcDEbYOKG19HUeoBHSorwSKl6Bsg+eOqf8E+blNQLNq7CoPcceGkpXBrfmGe3zgXKjrEGDbsEBuR7oA4GcJAYKw+tJEXZ7z4jy6kuJFxn5j3MZqvz0XIKM6/dUiF/0N1sfLrDWWpdBrW2yJt9yHaeqXhhA/IiHVrlj79KYxTU0UFwdBW6CjxLpOoQWaFwW3X94l5/UpKrDXFpwjjCOhceBpm8dHBxbYujDtop/n/R0VdhtVXtdyx/I877e/d5z3fDL6xTuAMnDYbJdqhVVbBoAukbOpYzhksJ7+1dFFEcku6pFfYPMnxjhxNs9AN5b/qAdxauUe167a/XVUOyOUFoZlptZsGO5i9HXCAnLOgyyTMpeeo3ELIJvSQAK5J9l/wz1g0cJboRsu1rM0LmNqynzScJja2MWaH1vXKlFA56Lr0ZtY/N3T7pg+BPucFp4Fp8hedoEIqRZbqWDAlfX4aY8u6BWTS5929ThrXT9Y5PRZplLAW9QdlmHewWZpevCSm5HA60SF7Qz9tUAVTyKzx/GLvLBNyI82M9JggHwK0gVe/fU0NtKewZnwNaJ4uM5LZvJxq6h0+/N6BLBZsLmBbUC3BgodMSdxb9y0rG8ipAWi9dZhEYd0=
    43    file_glob: true
    44    file: release/*
    45    skip_cleanup: true
    46    draft: true 
    47    on:
    48      tags: true