github.com/fitzix/goreleaser@v0.92.0/.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  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    - make static
    24    - test -z "$(git status --porcelain)"
    25    - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
    26    - test -n "$TRAVIS_TAG" && openssl aes-256-cbc -K $encrypted_a30d538a5078_key -iv $encrypted_a30d538a5078_iv -in snap.login.enc -out snap.login -d
    27    - test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
    28  deploy:
    29    - deploy:
    30      provider: pages
    31      skip_cleanup: true
    32      github_token: $GITHUB_TOKEN
    33      local_dir: www/public
    34      target_branch: master
    35      repo: goreleaser/goreleaser.github.io
    36      verbose: true
    37      fqdn: goreleaser.com
    38      on:
    39        tags: true
    40    - provider: script
    41      skip_cleanup: true
    42      script: go run main.go
    43      on:
    44        tags: true
    45  notifications:
    46    email: false