-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (26 loc) · 832 Bytes
/
.travis.yml
File metadata and controls
26 lines (26 loc) · 832 Bytes
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
services:
- docker
language: go
go:
- '1.11.4'
go_import_path: openpitrix.io/watcher
before_install:
- go get -u -v github.com/kardianos/govendor
install:
- govendor sync
- docker run -it -d -p 2379:2379 -p 2380:2380 --name etcd quay.io/coreos/etcd:v3.2.18 /usr/local/bin/etcd --data-dir=/etcd-data --name node1 --initial-advertise-peer-urls http://127.0.0.1:2380 --listen-peer-urls http://0.0.0.0:2380 --advertise-client-urls http://127.0.0.1:2379 --listen-client-urls http://0.0.0.0:2379 --initial-cluster node1=http://127.0.0.1:2380
script:
- make test
deploy:
- provider: script
script: make build-push-image-latest
skip_cleanup: true
on:
branch: master
repo: openpitrix/watcher
- provider: script
script: make build-push-image-$TRAVIS_TAG
skip_cleanup: true
on:
tags: true
repo: openpitrix/watcher