forked from cristianoliveira/ergo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 2.13 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: go
go:
- 1.17.x
env:
global:
# This will be part of the release tarball
- PROJECT_NAME=ergo
matrix:
# Clear the whole matrix
exclude:
- os: linux
- os: osx
# Add each target manually
include:
- os: linux
env: GOOS=linux GOARCH=amd64 TARGET=linux-amd64
- os: osx
env: GOOS=darwin GOARCH=amd64 TARGET=darwin-amd64
install:
- sh ci/install.sh
script:
- sh ci/script.sh
before_deploy:
- sh ci/before_deploy.sh
deploy:
provider: releases
# TODO Regenerate this api_key for your project, this one won't work for you. Here's how:
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
# `public_repo` scope enabled
# - Call `travis encrypt $github_token` where $github_token is the token you got in the previous
# step and `travis` is the official Travis CI gem (see https://rubygems.org/gems/travis/)
# - Enter the "encrypted value" below
api_key:
secure: "XxN7hZIfzEVgFlFMqQLrO69cSQzOO3CLy3KoHTAaHQYJlpT+R/mH/UH+J4wHcJBHXR8fZnqfedkOPoRR7pQf4Wwol9U695yBbk2HSQoQ/KW630VE95gNliQgZKMOISYGQZ9NsR8vkHTpMByVRWL1xfFg6qd6LodNJa2BcDWHG2q5cV5jocT3LmVBaEAXijNgxKF7De0Qx7qeY23mvrjc1ChjF/mqMATuGYgstEZPymsCuQoHVm1q1GbIO35N4SIhXWFA9Y9ghOZxIx1jGGXYPv1KjIKwRTNsNrQjyC1Ba6oJu6+cb4BbOF1nFzw5InWZZDO26eMtCqdT9/AeVm89/VOJf7StUvKp3OBTguRHRVcN8bDnk1eD/2UicIRRlhBX9Eo4TyImWrWjZhNt/83qjuc4bBd7cfGTpfQF8O8HAeGY2SJu0HpkxJK8KmzodKSAsEF4fVVuz+T3KgtXNeak1mKfhTlQvmlHmUgORY5tH3ze3uknqEr8h6vW0lR9GrTzaRFtzJEaGDQU7gkG1nBTk30wzJpUJ5RwDMoK9sFGi+LPB59Q1PkahONRIknKutYSLtAMjkOlOzbMBhpxInXCjJxomh7lJ65JW/hptW4cKY3iCFTPFtHcNcJEjYOeYlOWOn9JDoUpon6v8euc3KUFUfAW7M/RQbkflxbTazIhTrE="
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz
# don't delete the artifacts from previous phases
skip_cleanup: true
# deploy when a new tag is pushed
on:
tags: true
branches:
only:
# Pushes and PR to the master branch
- master
# IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
- /^v\d+\.\d+\.\d+.*$/
notifications:
email:
on_success: never