1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/.travis.yml
Carlos Alexandro Becker 5e2cca2eb1 chore: always run make static on build
So we guarantee that docs wont break on change
2017-12-05 23:06:15 -02:00

33 lines
810 B
YAML

dist: trusty
sudo: required
language: go
go: 1.9
services:
- docker
install:
- make setup
- gem install fpm
- sudo apt-get update
- sudo apt-get install --yes snapd rpm
- export PATH=/snap/bin:$PATH
- sudo snap install snapcraft --candidate --classic
script:
- make ci
- make static
- test -n "$TRAVIS_TAG" || go run main.go --skip-validate --skip-publish
after_success:
- bash <(curl -s https://codecov.io/bash)
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- test -n "$TRAVIS_TAG" && go run main.go
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
repo: goreleaser/goreleaser.github.io
local_dir: ./dist/goreleaser.github.io
on:
# TODO: change this to tags
branch: master
notifications:
email: false