1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00
goreleaser/.travis.yml
Carlos Alexandro Becker 4639eaad02 chore: using go 1.11
2018-09-16 21:46:21 -03:00

45 lines
913 B
YAML

dist: trusty
sudo: required
language: go
go: '1.11.x'
services:
- docker
addons:
apt:
packages:
- rpm
- snapd
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)
- make static
- test -z "$(git status --porcelain)"
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
deploy:
- deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: www/public
target_branch: master
repo: goreleaser/goreleaser.github.io
verbose: true
fqdn: goreleaser.com
on:
branch: master
- provider: script
skip_cleanup: true
script: go run main.go
on:
tags: true
notifications:
email: false