-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.97 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
language: go
matrix:
include:
- os: linux
dist: xenial
sudo: required
go: 1.7
- os: osx
go: 1.7
install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update
sudo apt-get install -y -q --no-install-recommends libhttp-parser-dev libssh2-1-dev
wget https://launchpad.net/ubuntu/+archive/primary/+files/libgit2-24_0.24.1-2_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libgit2-dev_0.24.1-2_amd64.deb
sudo dpkg -i libgit2-24_0.24.1-2_amd64.deb libgit2-dev_0.24.1-2_amd64.deb
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f98b7c21000191830f338390be7fe7ebe055b192/Formula/libgit2.rb
fi
- eval "$(ssh-agent -s)"
- openssl aes-256-cbc -K $encrypted_3d6742f56703_key -iv $encrypted_3d6742f56703_iv
-in builds_read_key.enc -out builds_read_key -d
- chmod 600 builds_read_key
- ssh-add builds_read_key
- go get github.com/Masterminds/glide
- go install github.com/Masterminds/glide
- glide install
- go build -v -o tagger-$TRAVIS_TAG-$TRAVIS_OS_NAME
script:
- go test -v
- ls .
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: Ky08VXAZZ/8pNfWGahKGHVwE6Emvyoi2Rlia9DOAyH18GOCn9JGlWZ5rw6wmS62nXcNZkoviHd3JtGeQPzCZ4pwariHY0c6+R1tYxkHLhu/bxWfkqljJHHA8BIcPVpDIONKmZ0oBFTU3YKWlanIPQbzp8RRbNY63H9IjmCdLtv7GZJ/7Mt41hWOo47MBy20sjJGdeJZWe0MDIwDPoivbAb0uMj+HpXadYU4cLKqJHnyTad5dHYM5X5IuaetCm0JHJpgqz77hM0NbOAIAHMREeP8F+bhSYFcg588nQSRxvz6m3MoPU6RoXhn9e/qjGRhVXe5eJVmWk4Tjj077uq/AaJIGWSd8tm5uckf/Yj7A9m3DVgradgulHZn2fAWZGEa7CYOxyMgTLqgPyZz9XXJTazafLi70JLmxntjhP8Ka1/zm5hWKT1Cq2xjOr5cVdmHYCEJCwRurXw5hVsAs5c6xm4N7oL2ixpgZouf+ZnwcIoh2TsipP5ZR92MGCBFvFY+y0vXn22otVrpAaSPjEicJTLJSw+8UZ3FcxCfp76Tej+xWsX3btrA15Epl9j4zc2SDs10w1E9lplDx7mo0GASRQkdnXdzeOf0V/wSB1cB8bpDgspJX2cWn4mSipyV60hm5KAqbJvtw2YZEjR73ZF/SFEXAugdI62pPWAcv5sWM7v4=
file: tagger-$TRAVIS_TAG-$TRAVIS_OS_NAME
on:
tags: true
repo: experimental-platform/release-tagger