1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/.travis.yml

42 lines
858 B
YAML
Raw Normal View History

2017-07-27 05:17:24 +02:00
dist: trusty
sudo: required
2016-12-29 03:30:14 +02:00
language: go
go: '1.10'
2017-09-13 01:58:14 +02:00
services:
- docker
addons:
apt:
packages:
- rpm
- snapd
env:
- PATH=/snap/bin:$PATH
2017-04-15 20:41:41 +02:00
install:
- make setup
- npm install -g prettier
2018-02-05 00:29:32 +02:00
- sudo snap install snapcraft --classic
2017-01-02 18:19:03 +02:00
script:
2017-09-26 23:49:53 +02:00
- make ci
- test -n "$TRAVIS_TAG" || go run main.go --snapshot
2017-01-21 23:21:42 +02:00
after_success:
2017-04-22 02:22:11 +02:00
- bash <(curl -s https://codecov.io/bash)
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- make static
deploy:
2018-02-18 21:40:41 +02:00
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
2018-02-18 21:40:41 +02:00
repo: goreleaser/goreleaser.github.io
local_dir: ./dist/goreleaser.github.io
target_branch: master
2018-02-18 21:40:41 +02:00
on:
tags: true
2018-02-18 21:40:41 +02:00
master: true
- provider: script
skip_cleanup: true
2018-02-19 01:02:12 +02:00
script: go run main.go --rm-dist
2018-02-18 21:40:41 +02:00
on:
tags: true
2016-12-29 03:30:14 +02:00
notifications:
2017-01-02 14:45:05 +02:00
email: false