github.com/jasei/goreleaser@v0.62.4-0.20180312171904-62cb6a8963a6/.travis.yml (about)

     1  dist: trusty
     2  sudo: required
     3  language: go
     4  go: '1.10'
     5  services:
     6    - docker
     7  addons:
     8    apt:
     9      packages:
    10      - rpm
    11      - snapd
    12      - liblz4-dev
    13  env:
    14    - PATH=/snap/bin:$PATH
    15  install:
    16    - make setup
    17    - npm install -g prettier
    18    - sudo snap install snapcraft --classic
    19  script:
    20    - make ci
    21    - test -n "$TRAVIS_TAG" || go run main.go --snapshot
    22  after_success:
    23    - bash <(curl -s https://codecov.io/bash)
    24    - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
    25    - make static
    26  deploy:
    27    - provider: pages
    28      skip_cleanup: true
    29      github_token: $GITHUB_TOKEN
    30      repo: goreleaser/goreleaser.github.io
    31      local_dir: ./dist/goreleaser.github.io
    32      target_branch: master
    33      on:
    34        tags: true
    35        master: true
    36    - provider: script
    37      skip_cleanup: true
    38      script: go run main.go --rm-dist
    39      on:
    40        tags: true
    41  notifications:
    42    email: false