2017-07-27 03:17:24 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2016-12-28 23:30:14 -02:00
|
|
|
language: go
|
2018-02-17 10:50:54 -02:00
|
|
|
go: '1.10'
|
2017-09-12 20:58:14 -03:00
|
|
|
services:
|
|
|
|
- docker
|
2017-04-15 15:41:41 -03:00
|
|
|
install:
|
|
|
|
- make setup
|
|
|
|
- gem install fpm
|
2017-12-10 14:59:26 -02:00
|
|
|
- npm install -g prettier
|
2017-07-27 03:17:24 +00:00
|
|
|
- sudo apt-get update
|
2018-02-09 00:04:40 -02:00
|
|
|
- sudo apt-get install --yes snapd rpm liblz4-dev
|
2017-07-27 03:24:19 +00:00
|
|
|
- export PATH=/snap/bin:$PATH
|
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
|
2017-04-23 13:22:12 +02:00
|
|
|
- test -n "$TRAVIS_TAG" || go run main.go --skip-validate --skip-publish
|
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-10-07 17:55:38 -03:00
|
|
|
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
2017-12-05 22:10:38 -02:00
|
|
|
- test -n "$TRAVIS_TAG" && go run main.go
|
2017-12-05 22:36:00 -02:00
|
|
|
- make static
|
2017-12-05 22:09:24 -02:00
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
repo: goreleaser/goreleaser.github.io
|
|
|
|
local_dir: ./dist/goreleaser.github.io
|
2017-12-05 23:37:34 -02:00
|
|
|
target_branch: master
|
2017-12-05 22:09:24 -02:00
|
|
|
on:
|
2017-12-10 14:44:40 -02:00
|
|
|
master: true
|
2016-12-28 23:30:14 -02:00
|
|
|
notifications:
|
2017-01-02 10:45:05 -02:00
|
|
|
email: false
|