github.com/droot/goreleaser@v0.66.2-0.20180420030140-c2db5fb17157/.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  env:
    13    - PATH=/snap/bin:$PATH
    14  install:
    15    - make setup
    16    - npm install -g prettier
    17    - sudo snap install snapcraft --classic
    18  script:
    19    - make ci
    20    - test -n "$TRAVIS_TAG" || go run main.go --snapshot
    21  after_success:
    22    - bash <(curl -s https://codecov.io/bash)
    23    - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
    24    - make static
    25  deploy:
    26    - provider: pages
    27      skip_cleanup: true
    28      github_token: $GITHUB_TOKEN
    29      repo: goreleaser/goreleaser.github.io
    30      local_dir: ./dist/goreleaser.github.io
    31      target_branch: master
    32      on:
    33        tags: true
    34        master: true
    35    - provider: script
    36      skip_cleanup: true
    37      script: go run main.go --rm-dist
    38      on:
    39        tags: true
    40  notifications:
    41    email: false