1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/.travis.yml
Carlos Alexandro Becker 1a90afcf5f
chore: compile with go1.10 (#560)
* chore: compile with go1.10

* chore: fix?

* chore: fix ci, maybe?

* chore: fix ci, maybe?

* test: fixed broken test
2018-02-17 10:50:54 -02:00

34 lines
830 B
YAML

dist: trusty
sudo: required
language: go
go: '1.10'
services:
- docker
install:
- make setup
- gem install fpm
- npm install -g prettier
- sudo apt-get update
- sudo apt-get install --yes snapd rpm liblz4-dev
- 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