forked from apache/servicecomb-service-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 1.29 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
language: go
sudo: required
services:
- docker
go:
- 1.8.3
before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get github.com/tedsuo/rata
- go get github.com/onsi/ginkgo
- go get github.com/onsi/ginkgo/config
- go get github.com/onsi/ginkgo/types
- go get github.com/onsi/ginkgo/ginkgo
- go get github.com/astaxie/beego
- go get github.com/onsi/gomega
- go get github.com/onsi/gomega/gbytes
- go get github.com/FiloSottile/gvt
before_script:
- mkdir -p $HOME/gopath/src/github.com/apache/incubator-servicecomb-service-center
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/apache/incubator-servicecomb-service-center/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/apache/incubator-servicecomb-service-center
- cd $HOME/gopath/src/github.com/apache/incubator-servicecomb-service-center
- gvt restore
install: true
jobs:
include:
- stage: Building Service Center
script: go build -o servicecenter
- stage: Unit Testing
script: bash -x scripts/ut_test_in_docker.sh && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci
- stage: Integration Testing
script: bash -x scripts/integration_test.sh
after_success:
- bash <(curl -s https://codecov.io/bash)