forked from goreleaser/goreleaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 816 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dist: trusty
sudo: required
language: go
go: 1.9
services:
- docker
install:
- make setup
- gem install fpm
- npm install -g prettier
- sudo apt-get update
- sudo apt-get install --yes snapd rpm
- export PATH=/snap/bin:$PATH
- sudo snap install snapcraft --classic
script:
- make ci
- test -n "$TRAVIS_TAG" || go run main.go --skip-validate --skip-publish
after_success:
- bash <(curl -s https://codecov.io/bash)
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- test -n "$TRAVIS_TAG" && go run main.go
- 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
notifications:
email: false