2017-07-27 05:17:24 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2016-12-29 03:30:14 +02:00
|
|
|
language: go
|
2019-02-27 16:57:08 +02:00
|
|
|
go: '1.12.x'
|
2017-09-13 01:58:14 +02:00
|
|
|
services:
|
|
|
|
- docker
|
2018-02-26 23:49:58 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- rpm
|
|
|
|
- snapd
|
|
|
|
env:
|
2019-03-03 19:12:22 +02:00
|
|
|
- PATH=/snap/bin:$PATH
|
2017-04-15 20:41:41 +02:00
|
|
|
install:
|
|
|
|
- make setup
|
2017-12-10 18:59:26 +02:00
|
|
|
- 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
|
2019-03-03 19:12:22 +02:00
|
|
|
- test -n "$TRAVIS_TAG" || ./goreleaser --snapshot --debug
|
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)
|
2017-12-06 02:36:00 +02:00
|
|
|
- make static
|
2018-05-02 06:02:18 +02:00
|
|
|
- test -z "$(git status --porcelain)"
|
|
|
|
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
2018-10-25 15:14:19 +02: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 21:36:35 +02:00
|
|
|
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
|
2017-12-06 02:09:24 +02:00
|
|
|
deploy:
|
2018-04-25 07:20:12 +02:00
|
|
|
- deploy:
|
|
|
|
provider: pages
|
2018-03-11 19:00:46 +02:00
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
2018-04-25 07:20:12 +02:00
|
|
|
local_dir: www/public
|
2018-03-11 19:00:46 +02:00
|
|
|
target_branch: master
|
2018-04-25 07:20:12 +02:00
|
|
|
repo: goreleaser/goreleaser.github.io
|
|
|
|
verbose: true
|
|
|
|
fqdn: goreleaser.com
|
2018-02-18 21:40:41 +02:00
|
|
|
on:
|
2018-10-05 03:24:13 +02:00
|
|
|
tags: true
|
2018-02-18 21:40:41 +02:00
|
|
|
- provider: script
|
2018-03-11 19:00:46 +02:00
|
|
|
skip_cleanup: true
|
2019-03-03 19:24:03 +02:00
|
|
|
script: ./goreleaser
|
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
|