This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
89 lines (89 loc) · 2.39 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File managed by pluginsync
sudo: true
language: go
go:
- 1.7.x
- 1.8.x
services:
- docker
env:
global:
- ORG_PATH=/home/travis/gopath/src/github.com/intelsdi-x
- SNAP_PLUGIN_SOURCE=/home/travis/gopath/src/github.com/${TRAVIS_REPO_SLUG}
matrix:
- TEST_TYPE: small
- SNAP_VERSION: latest
OS: alpine
TEST_TYPE: large
- SNAP_VERSION: latest_build
OS: alpine
TEST_TYPE: large
- SNAP_VERSION: latest
OS: xenial
TEST_TYPE: large
- SNAP_VERSION: latest
OS: centos7
TEST_TYPE: large
- TEST_TYPE: build
matrix:
exclude:
- go: 1.6.3
env: SNAP_VERSION=latest OS=alpine TEST_TYPE=large
- go: 1.6.3
env: SNAP_VERSION=latest_build OS=alpine TEST_TYPE=large
- go: 1.6.3
env: SNAP_VERSION=latest OS=xenial TEST_TYPE=large
- go: 1.6.3
env: SNAP_VERSION=latest OS=centos7 TEST_TYPE=large
- go: 1.7.x
env: TEST_TYPE=build
before_install:
- "[[ -d $SNAP_PLUGIN_SOURCE ]] || mkdir -p $ORG_PATH && ln -s $TRAVIS_BUILD_DIR $SNAP_PLUGIN_SOURCE"
install:
- cd $SNAP_PLUGIN_SOURCE
- make deps
script:
- make check 2>&1
notifications:
email: false
slack:
secure: VkbZLIc2RH8yf3PtIAxUNPdAu3rQQ7yQx0GcK124JhbEnZGaHyK615V0rbG7HcVmYKGPdB0cXqZiLBDKGqGKb2zR1NepOe1nF03jxGSpPq8jIFeEXSJGEYGL34ScDzZZGuG6qwbjFcXiW5lqn6t8igzp7v2+URYBaZo5ktCS2xY=
before_deploy:
- "./scripts/pre_deploy.sh"
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: snap.ci.snap-telemetry.io
region: us-west-2
skip_cleanup: true
local-dir: s3
upload-dir: plugins
acl: public_read
on:
repo: intelsdi-x/snap-plugin-publisher-file
branch: master
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION =~ ^1\.8(|\.[0-9]+)$
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: snap.ci.snap-telemetry.io
region: us-west-2
skip_cleanup: true
local-dir: s3
upload-dir: plugins
acl: public_read
on:
repo: intelsdi-x/snap-plugin-publisher-file
tags: true
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION =~ ^1\.8(|\.[0-9]+)$
- provider: releases
api_key: $GITHUB_API_KEY
file:
- release/snap-plugin-publisher-file_linux_x86_64
- release/snap-plugin-publisher-file_darwin_x86_64
skip_cleanup: true
on:
repo: intelsdi-x/snap-plugin-publisher-file
tags: true
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION =~ ^1\.8(|\.[0-9]+)$