1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/.travis.yml
Carlos Alexandro Becker 038d8e0a0b
docs: deploy: wtf travis
2018-03-11 13:08:21 -03:00

43 lines
876 B
YAML

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
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