2019-07-07 11:54:33 -03:00
|
|
|
dist: trusty
|
2017-07-27 03:17:24 +00:00
|
|
|
sudo: required
|
2016-12-28 23:30:14 -02:00
|
|
|
language: go
|
2019-02-27 11:57:08 -03:00
|
|
|
go: '1.12.x'
|
2017-09-12 20:58:14 -03:00
|
|
|
services:
|
|
|
|
- docker
|
2018-02-26 18:49:58 -03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- rpm
|
|
|
|
- snapd
|
|
|
|
env:
|
2019-03-03 14:12:22 -03:00
|
|
|
- PATH=/snap/bin:$PATH
|
2017-04-15 15:41:41 -03:00
|
|
|
install:
|
|
|
|
- make setup
|
2018-02-04 20:29:32 -02:00
|
|
|
- sudo snap install snapcraft --classic
|
2017-01-02 14:19:03 -02:00
|
|
|
script:
|
2017-09-26 18:49:53 -03:00
|
|
|
- make ci
|
2019-06-09 15:43:57 -03:00
|
|
|
- test -n "$TRAVIS_TAG" || ./goreleaser --snapshot
|
2017-01-21 19:21:42 -02:00
|
|
|
after_success:
|
2017-04-21 21:22:11 -03:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2017-12-05 22:36:00 -02:00
|
|
|
- make static
|
2018-05-01 21:02:18 -07:00
|
|
|
- test -z "$(git status --porcelain)"
|
|
|
|
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
2018-10-25 10:14:19 -03:00
|
|
|
- test -n "$TRAVIS_TAG" && openssl aes-256-cbc -K $encrypted_a30d538a5078_key -iv $encrypted_a30d538a5078_iv -in snap.login.enc -out snap.login -d
|
2018-10-20 16:36:35 -03:00
|
|
|
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
|
2017-12-05 22:09:24 -02:00
|
|
|
deploy:
|
2018-04-24 22:20:12 -07:00
|
|
|
- deploy:
|
|
|
|
provider: pages
|
2018-03-11 14:00:46 -03:00
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
2018-04-24 22:20:12 -07:00
|
|
|
local_dir: www/public
|
2018-03-11 14:00:46 -03:00
|
|
|
target_branch: master
|
2018-04-24 22:20:12 -07:00
|
|
|
repo: goreleaser/goreleaser.github.io
|
|
|
|
verbose: true
|
|
|
|
fqdn: goreleaser.com
|
2018-02-18 16:40:41 -03:00
|
|
|
on:
|
2019-03-24 20:10:30 -03:00
|
|
|
master: true
|
2018-02-18 16:40:41 -03:00
|
|
|
- provider: script
|
2018-03-11 14:00:46 -03:00
|
|
|
skip_cleanup: true
|
2019-03-03 14:24:03 -03:00
|
|
|
script: ./goreleaser
|
2018-02-18 16:40:41 -03:00
|
|
|
on:
|
|
|
|
tags: true
|
2016-12-28 23:30:14 -02:00
|
|
|
notifications:
|
2017-01-02 10:45:05 -02:00
|
|
|
email: false
|