gitee.com/mirrors_opencollective/goreleaser@v0.45.0/.travis.yml (about)

     1  dist: trusty
     2  sudo: required
     3  language: go
     4  go: 1.9
     5  services:
     6    - docker
     7  install:
     8    - make setup
     9    - gem install fpm
    10    - npm install -g prettier
    11    - sudo apt-get update
    12    - sudo apt-get install --yes snapd rpm
    13    - export PATH=/snap/bin:$PATH
    14    - sudo snap install snapcraft --candidate --classic
    15  script:
    16    - make ci
    17    - test -n "$TRAVIS_TAG" || go run main.go --skip-validate --skip-publish
    18  after_success:
    19    - bash <(curl -s https://codecov.io/bash)
    20    - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
    21    - test -n "$TRAVIS_TAG" && go run main.go
    22    - make static
    23  deploy:
    24    provider: pages
    25    skip_cleanup: true
    26    github_token: $GITHUB_TOKEN
    27    repo: goreleaser/goreleaser.github.io
    28    local_dir: ./dist/goreleaser.github.io
    29    target_branch: master
    30    on:
    31      master: true
    32  notifications:
    33    email: false