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 fdc032ec15
refactor: unifying snapshot with skip-validate and skip-publish (#575)
* refactor: removed goreleaserlib: moved all to main

* refactor: wip: snapshot

* fix: more pipes

* fix: more pipes

* fix: git tests

* fix: some other validate and publish usages

* fix: git dirty check when snapshoting

* fix: nfpm: use tag instead of version

* test: docker: print docker run output if registry fails
2018-02-24 17:59:08 -03:00

38 lines
888 B
YAML

dist: trusty
sudo: required
language: go
go: '1.10'
services:
- docker
install:
- make setup
- gem install fpm
- npm install -g prettier
- sudo apt-get update
- sudo apt-get install --yes snapd rpm liblz4-dev
- export PATH=/snap/bin:$PATH
- 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
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