Skip to content

Commit 399affe

Browse files
committed
update script and add auto ci travis test.
1 parent fd6cc60 commit 399affe

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: go
2+
sudo: false
3+
4+
go:
5+
- 1.5.3
6+
- 1.6
7+
- tip
8+
9+
env:
10+
global:
11+
- GO15VENDOREXPERIMENT=1
12+
13+
#install: true
14+
script:
15+
- make validate
16+
- make test
17+
- make bin
18+
19+
notifications:
20+
email:
21+
on_success: change
22+
on_failure: always
23+
24+
matrix:
25+
allow_failures:
26+
- go: tip
27+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ validate:
1515

1616
## Run test case for this go project.
1717
test:
18-
go test ./...
18+
go list ./... | grep -v 'vendor' | xargs -L1 go test -v
1919

2020
## Clean everything (including stray volumes).
2121
clean:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# memcache-metrics
2+
# **memcache-metrics** <sup><sub>_memcached metrics collector for open-falcon_</sub></sup>
3+
[![Build Status](https://travis-ci.org/mesos-utility/memcache-metrics.svg?branch=master)](https://travis-ci.org/mesos-utility/memcache-metrics)
4+
25
memcached metrics collector for open-falcon.

control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function build() {
1717
cat <<EOF > ./g/git.go
1818
package g
1919
const (
20-
COMMIT = "$commit"
20+
COMMIT ="$commit"
2121
)
2222
EOF
2323
GO15VENDOREXPERIMENT=1; go build -o $app main.go

g/git.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package g
2+
23
const (
3-
COMMIT = "ff3179a"
4+
COMMIT = "fd6cc60"
45
)

script/.validate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [ -z "$VALIDATE_UPSTREAM" ]; then
55
# are running more than one validate bundlescript
66

77
VALIDATE_REPO='https://github.com/mesos-utility/memcache-metrics.git'
8-
VALIDATE_BRANCH='dev'
8+
VALIDATE_BRANCH='master'
99

1010
if [ "$TRAVIS" = 'true' -a "$TRAVIS_PULL_REQUEST" != 'false' ]; then
1111
VALIDATE_REPO="https://github.com/${TRAVIS_REPO_SLUG}.git"

0 commit comments

Comments
 (0)