forked from tchen0123/supergiant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (44 loc) · 4.26 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
sudo: required
services:
- docker
language: go
env:
global:
- secure: oYBxHnfsmfNmnbFb0qPoiCMjr4vEdA7s/28IIZUwpNpLwsV4NuaA0u6awDmpG7viu+PbwY/+/JWhultZ7mbNwscX40nT5LBUxb6OIqEvxPNhU27knxDrFD6g0+70d4PCv1eF1bc3rsLnAvVinZB2n4mxAikMVll2iDON+UEJBRKwAu1cp1ipa84sAATvK2fZMtE+DSaJmt2l1zyquVKHMlGCNzsk6ANNvCTEk6CeYnvSSM9TlOnDp2SrXqrNqCPpli/Z8FJfRj5tCHrvRIQIhrbUrSVv1ISSiMr6TFucsWVTRslVwbtQUL1lb/Ae/mItZCoWW+yrJvkVUcj+OTHFo6mQKxAE+Rj7/inrpHxId4o5luvMZvCPlNl5AB58iCX0LhnzOkDQzLSXBwV6VEYWUXACSlDuK7pmSAKA+FR7Z4sfL4q5MDAN0BttTcak4RP8OCuAV7oHmY49j0VWP8Zu86OF0MZD+R8uYMzYyoi9J2iUQjb+WfR1MSxb3UL51+K2mFqahD99kp17mumnzxLlw1CzbIS3axUFIuRm2b/bDFtnse8iVSrWyWg1lfkitCflDrejWA3h9Pwe/7fUuiTonA4OtjIHNuyQpMdcAOFDDoxXhyCfqEXuWZqycF2rAfx3H4DU2O/4Sqok82gziHz4x7FZfWUbSxiGJAIh3xNlobs=
- secure: SM4VoIu6684mlsXlYDOgo/RpjB4+Gn1/yJKM2C7yTATm6Xz0SG/+Y1qum5HDsqLPIRu/bhbYB3xTXcbJDNzJM8SZg4NiPrlG/B0NEXMVqP9oK2wRxnokmTI79kAia6XKDUshAd8NiUP1Q22o0wM6WousI2GspJLeswX5dh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wzLK6m49U29nVWtnQlkaVnmJ1lwk3fKRPdIHcdDVfN7MbcRQ8uAkEwinikzkA/S0nHu1Gjl+icleBMgwbAyyMG+/p2UfC2pinRSiMxdlDORUORXgRplG+QrdQC9g=
- COMMIT=${TRAVIS_COMMIT::8}
go:
- "1.10"
go_import_path: github.com/supergiant/supergiant
before_install:
- sudo apt-get update
- sudo apt-get install docker-ce
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
- mkdir ~/.docker
- echo '{"experimental":"enabled"}' | tee ~/.docker/config.json
- sudo service docker restart
- docker version
- docker volume create --name etcd-data
- export DATA_DIR="etcd-data"
- export REGISTRY=quay.io/coreos/etcd
- docker run -d -p 2379:2379 -p 2380:2380 --volume=${DATA_DIR}:/etcd-data --name etcd ${REGISTRY}:latest /usr/local/bin/etcd --data-dir=/etcd-data --name node1 --initial-advertise-peer-urls http://0.0.0.0:2380 --listen-peer-urls http://0.0.0.0:2380 --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379 --initial-cluster node1=http://0.0.0.0:2380
install:
- go get github.com/mattn/goveralls
script:
# Test
# - govendor test +local (NOTE not needed with coverage line below)
# Coverage
- go test -covermode=count -coverprofile=profile.cov ./pkg/...
- goveralls -coverprofile=profile.cov -service=travis-ci
# Integration
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ] ; then echo running integration tests && go test -v -tags=integration -timeout 45m ./pkg/... ./test/... ; fi
# Make build
# - docker build . -t supergiant/controlplane
# - travis_wait 60 build/travis_build.sh
after_success:
#- build/ghr.sh
- echo Success
notifications:
slack:
secure: u2FdlOGvhlGeak7Pcnb7AOiNspC8Gi83xQsRgBxwtRy1zj/bxHVHeDWQMlfbmpzGoQelWa33kxym1l+UIISXyWfxS1v/tIbbWH2kjkDlVj/saQBHBIG/I5YsSNgwTmKiAO/Kfvng/vRInQ/AI6+aJDAJN71T6PGkbVMK0Tnsim6ojBowDbzhJouXLIz6H7hqA/8CNpS/NgqGJ5sPUY3TWr9f769q+zohP54Tc3t/NveHLYaoiKgwdi10+587F1jOeWkP0T5Z62o3qEg+W3MpKkAt8Ev02EXfk+DGTSLxXDlN9MTLapfUTrX/6B0m5/ttDpOv6x35amE5rrO2peDGB+cWcqx/JyuoPN9SelYL9uINRrgAF+5pqvI8fqUiXHFHUOMJ0w+wlD/tZyrpS1WZN9kgzXQbQz5UAkzwQ8utfQRY5RgFvSuBPUvUvxTsszWo4rZC3refZ3/b6u1PnPstOLXnxdNgbR8/pTZqDgyy8cuDzvcNTvoTFMMZ8AZxO0HTKmW1ioBkvMtWA0NZoLDXNA76kUH/zKxZ16ZYCQloxseEK9p75m+2LkA4VSB03JALtHdVW+DIanscdzX6KNSXqUtKxutGX0uFmUYTFcCXH1rDbwMTJ8wh8mCjFLlXb1v0M9w4WqRoPjIJEeyWHgQemf2tKcNLbu8BuDq2fgUN7+4=