forked from stellar/go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (72 loc) · 3.52 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
62
63
64
65
66
67
68
69
70
71
72
dist: xenial
language: go
services:
- mysql
- postgres
- redis-server
addons:
postgresql: '10'
ssh_known_hosts:
- bitbucket.org
go:
- '1.9'
- '1.10'
- '1.11'
- tip
go_import_path: github.com/stellar/go
before_install:
- |
if [ "$TRAVIS_TAG" != "" ]; then
# Negate the result so process exits with 1 if anything found
echo "Searching for deprecated values in Horizon..."
! egrep -irn -A 1 --include=*.go "Deprecated.+-.+remove.+in:.+$TRAVIS_TAG" ./services/horizon/ ./protocols/horizon/
fi
- ./gofmt.sh
- ./govet.sh
install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
script:
- dep ensure -v && ./support/scripts/run_tests
cache:
directories:
- $GOPATH/pkg/dep # cache dep downloaded dependencies
before_deploy:
- go run ./support/scripts/build_release_artifacts/main.go
- ./support/scripts/push_snapshots_tag.sh
matrix:
fast_finish: true
allow_failures:
- go: tip
notifications:
slack:
on_success: change
on_failure: always
secure: Uhx8H2RFNsJ9GknDItSwhMOl5K3HTGNjifJwkLUiRio4JH4PzrkHDOzCOpEzrboviVF+Rch9VsC7HchIY2uyqeB9UW63dCMPeaYSs7rfNCmW8bTcGydeVOe0HV18mpM/4yPy/gsw5Zq+eGq7+p9NZtwkOHeQ/YtoSFcWbQQYs3CPZpBUP95KW1fGTn8OIW6nKkVA0Kyr6aXJFZB9AHIg24R9l2uraHdjg5EUJJO/4yR0GWC1pLTfUCqUt9mXPeGSQOhhvR+pCKSljY3pB6oex2hKH04u3U1iRzOBuKMPmMrcyJDzvVRkCaCn+0LPGZ3vgDDcDdcqYxEk1a1n27wzjqYlDeH4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_glob: true
overwrite: true
prerelease: true
tags: false
name: Snapshots $(date --utc +'%F-%T')
on:
branch: master
go: '1.11'
#tagged releases
- provider: releases
skip_cleanup: true
overwrite: true
api_key:
secure: q8H6HZWdaVF9lW2svzV/xdVZzF8SOBrnqGleAXEtI8l9bykq6gWBxSrU4BSma3KRsIBy/G5z6DNFGO0lRTPMLJ6j6WybvPruW1bOpBgPgaOD6Jz+jr62VNlRr4eWot+UZNTvuJMbR/3qqzMee5pIqIjI2kmDYD6VnOB0vAK3It/JCIc+VDDGzROMi9+nGIsAt7mZkU5kNzLDzaC+92IopTi7vXUGJ0cUDjKF1aiHKCFcWfkNUlTQoPnItpGNzBzGoTOX06LR9X+Uf9w651za+vZ7c0Ftd/Aujvv73KfMV5pIJehPCxI5x/PfEZ3AZwrDYC0theZ+NDWjHz/C2O56Ybi5V9TkKG3Yjy6eNVt7txhq1BY2A4EwvX8Lf8zMiG2VQ0YMNM1qUV6LDjqq4uCOeBjBjtgpqQXwMAtPKH+UF0Z8dj41+GfVOKD/Tv6r2Ue6XHYtk1pJVgWJwImnMbxNArEWWe2gt8ZL5vk21Q1VJN4bF2o2o94j/OjC/Nrawb9wgJN6tcXNEOYZGZPgoviJI5isBZy7SFzVXZpFgFEapZ7Ira3xa8bjGTmG+wTCWGkIRg1uX5EqbOqU1pP9lUPPknstfEi3w30ZR/4wnOrfXBh8fjfxZnTz6S32yolYxWKeSFyR6CvHvtZovAL7nEdEUb3DGSrfk+D6LcmzGqn78L4=
file: dist/*
file_glob: true
on:
repo: stellar/go
tags: true
condition: $TRAVIS_TAG != snapshots
go: '1.11'