forked from goreleaser/goreleaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 913 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
34
35
36
37
38
39
40
41
42
43
44
dist: trusty
sudo: required
language: go
go: '1.11.x'
services:
- docker
addons:
apt:
packages:
- rpm
- snapd
env:
- PATH=/snap/bin:$PATH
install:
- make setup
- npm install -g prettier
- sudo snap install snapcraft --classic
script:
- make ci
- test -n "$TRAVIS_TAG" || go run main.go --snapshot
after_success:
- bash <(curl -s https://codecov.io/bash)
- make static
- test -z "$(git status --porcelain)"
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
deploy:
- deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: www/public
target_branch: master
repo: goreleaser/goreleaser.github.io
verbose: true
fqdn: goreleaser.com
on:
branch: master
- provider: script
skip_cleanup: true
script: go run main.go
on:
tags: true
notifications:
email: false