-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
42 lines (42 loc) · 1.48 KB
/
.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
sudo: required
services:
- docker
language: go
go:
- '1.8'
before_install:
- sudo add-apt-repository ppa:masterminds/glide -y
- sudo apt-get update -q
- sudo apt-get install glide -y
- mkdir -p $GOPATH/bin
install:
- make deps
script:
- make test
before_deploy:
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 make
- make cross-build
- make dist
deploy:
- provider: releases
skip_cleanup: true
api_key:
secure: N/ojFclq4yqXzB3ojWpywNeD/BIviybd4UzG3+23x8qDhEfnPiqAdcrv05Cl+LvuIlYGZcuy42cnuac/aQDC8ZJSgtkwv6EIiA+me+eYcXQeqbCybMJFfA9tI5l1hayMsZCwnvi3x+8Lx+AegA/3waXZks3ud7TAFIc6oKoBo9PSivY/Jv6hjmypF7VszkZpsO3juI98sSaKvH5anQSh+uErEwU0EtUq/KI7SHVbf21ZuP8GDK6oxbGXlssS896qwLb1fmN00tQfqpCGhRpwpUpxlrSLiyUv+VVfon38U2o6OoqCPeUA12y5P80tlGAZkU8tMP0eaQTLygBAjahaV28EXorbEuXZeWRGWqNodbguW5yaXhwMPiEfZHkY1vii1p0DKihnmyFQAmsb7+owgNo1QPHCnVX6qtEhUCYEzqe6MyePvPoO3mR2TYXdVRmEUNQqaNQWaN6UT0GSd7l1ZMWutVvTKN6ehYrDrfP9f4LOkjOHoz2zN5qdHcfludmK5MTtmJ2BEIiy6Z9JB/NrXnK+xphBVv+tYK7Mtz0Ql2IePdHaUFue504sFB+LnNfiFAzM9YriMRDTKKqxy+3XQskwuJd93fslDOWuktRgoYkqU7OtIlXxo1xmbbWuUX6eL+4Jwx785jdZGgjFZ6e3dejz75d3EmeE/LhgSjirikE=
file_glob: true
file: 'dist/*.{tar.gz,zip}'
on:
repo: koudaiii/qucli
tags: true
go: '1.8'
- provider: script
skip_cleanup: true
script: make ci-docker-release
on:
branch: master
go: '1.8'
- provider: script
skip_cleanup: true
script: DOCKER_IMAGE_TAG=$TRAVIS_TAG make ci-docker-release
on:
tags: true
go: '1.8'