forked from apache/servicecomb-service-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (29 loc) · 1.05 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
language: go
sudo: required
services:
- docker
go:
- 1.11
before_install:
- go get github.com/mattn/goveralls
- curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
- sudo apt-get install -y nodejs
- npm install -g bower
before_script:
- mkdir -p $HOME/gopath/src/github.com/apache/servicecomb-service-center
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/apache/servicecomb-service-center/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/apache/servicecomb-service-center
- cd $HOME/gopath/src/github.com/apache/servicecomb-service-center
- GO111MODULE=on go mod download
- GO111MODULE=on go mod vendor
install: true
jobs:
include:
- stage: Building Service Center
script: bash -x scripts/build/local.sh
- 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)