github.com/jonathanlloyd/goreleaser@v0.91.1/.travis.yml (about)

     1  dist: trusty
     2  sudo: required
     3  language: go
     4  go: '1.11.x'
     5  services:
     6    - docker
     7  addons:
     8    apt:
     9      packages:
    10      - rpm
    11      - snapd
    12  env:
    13    - PATH=/snap/bin:$PATH
    14  before_install:
    15    - openssl aes-256-cbc -K $encrypted_a30d538a5078_key -iv $encrypted_a30d538a5078_iv -in snap.login.enc -out snap.login -d
    16  install:
    17    - make setup
    18    - npm install -g prettier
    19    - sudo snap install snapcraft --classic
    20  script:
    21    - make ci
    22    - test -n "$TRAVIS_TAG" || go run main.go --snapshot
    23  after_success:
    24    - bash <(curl -s https://codecov.io/bash)
    25    - make static
    26    - test -z "$(git status --porcelain)"
    27    - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
    28    - test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
    29  deploy:
    30    - deploy:
    31      provider: pages
    32      skip_cleanup: true
    33      github_token: $GITHUB_TOKEN
    34      local_dir: www/public
    35      target_branch: master
    36      repo: goreleaser/goreleaser.github.io
    37      verbose: true
    38      fqdn: goreleaser.com
    39      on:
    40        tags: true
    41    - provider: script
    42      skip_cleanup: true
    43      script: go run main.go
    44      on:
    45        tags: true
    46  notifications:
    47    email: false