dist: trusty
sudo: required
language: go
go: '1.10'
services:
  - docker
addons:
  apt:
    packages:
    - rpm
    - snapd
    - liblz4-dev
env:
  - PATH=/snap/bin:$PATH
install:
  - make setup
  - npm install -g prettier
  - sudo snap install snapcraft --classic
script:
  - make ci
  - test -n "$TRAVIS_TAG" || go run main.go --snapshot
after_success:
  - bash <(curl -s https://codecov.io/bash)
  - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - make static
deploy:
  - provider: pages
    skip_cleanup: true
    keep-history: true
    verbose: true
    github_token: $GITHUB_TOKEN
    repo: goreleaser/goreleaser.github.io
    local_dir: ./dist/goreleaser.github.io
    target_branch: master
    on:
      master: true
  - provider: script
    skip_cleanup: true
    script: go run main.go --rm-dist
    on:
      tags: true
notifications:
  email: false

dist: trusty
sudo: required
language: go
go: '1.10'
services:
  - docker
addons:
  apt:
    packages:
    - rpm
    - snapd
    - liblz4-dev
env:
  - PATH=/snap/bin:$PATH
install:
  - make setup
  - npm install -g prettier
  - sudo snap install snapcraft --classic
script:
  - make ci
  - test -n "$TRAVIS_TAG" || go run main.go --snapshot
after_success:
  - bash <(curl -s https://codecov.io/bash)
  - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - make static
deploy:
  - provider: pages
    skip_cleanup: true
    github_token: $GITHUB_TOKEN
    repo: goreleaser/goreleaser.github.io
    local_dir: ./dist/goreleaser.github.io
    target_branch: master
    on:
      master: true
  - provider: script
    skip_cleanup: true
    script: go run main.go --rm-dist
    on:
      tags: true
notifications:
  email: false

Revert "docs: deploy: debug deploy to pages"
Revert "docs: deploy: debug deploy to pages"

This reverts commit cf861c463089f3e929d2450210a8218627906541.
