forked from go-chassis/go-chassis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (45 loc) · 1.61 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
language: go
sudo: required
go:
- 1.8.3
install: true
before_script:
- mkdir -p $HOME/gopath/src/github.com/ServiceComb/go-chassis
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/ServiceComb/go-chassis/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/ServiceComb/go-chassis
- cd $HOME/gopath/src/github.com/ServiceComb/go-chassis
jobs:
include:
- stage: Format Checker
script: bash -x scripts/travis/formatChecker.sh
- stage: DeadCode Checker
script:
- go get -u github.com/tsenart/deadcode
- bash -x scripts/travis/deadCodeChecker.sh
- stage: Misspell Checker
script:
- go get -u github.com/client9/misspell
- bash -x scripts/travis/misspellChecker.sh
- stage: GoConst Checker
script:
- go get -u github.com/jgautheron/goconst/cmd/goconst
- bash -x scripts/travis/goConstChecker.sh
- stage: GoLint Checker
script:
- go get -u github.com/golang/lint/golint
- bash -x scripts/travis/goLintChecker.sh
- stage: Unit Test
script:
- docker run -d -p 30100:30100 servicecomb/service-center
- go get github.com/FiloSottile/gvt
- go get github.com/stretchr/testify
- go get github.com/reactivex/rxgo
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- gvt restore
- bash -x scripts/travis/unit_test.sh && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci
- stage: Build
script:
- go get github.com/FiloSottile/gvt
- gvt restore
- go build -o chassis