forked from kubeedge/kubeedge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (74 loc) · 2.92 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
language: go
sudo: required
services:
- docker
go:
- 1.12
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md)|(\.png)|(\.pdf)|(\.html)|^(LICENSE)|^(docs)'
then
echo "Only doc files were updated, skip running the CI."
exit
fi
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint sh -s -- -d -b $(go env GOPATH)/bin v1.16.0
- mkdir -p $HOME/gopath/src/github.com/kubeedge/kubeedge
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/kubeedge/kubeedge/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/kubeedge/kubeedgee
- go get github.com/onsi/ginkgo/ginkgo
- export GO111MODULE=on
- export GOFLAGS=-mod=vendor
- cd $HOME/gopath/src/github.com/kubeedge/kubeedge
- sudo apt-get install build-essential
- sudo apt-get install gcc-arm-linux-gnueabi
- sudo apt-get install upx-ucl
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
install: true
jobs:
include:
- stage: "Test lint"
script: make cloud_lint
name: "cloud_lint" # names the eighth Tests stage job
- script: make bluetoothdevice_lint
name: "bluetooth_device_lint"
- script: make keadm_lint
name: "keadm_lint"
- script: make edge_lint
name: "edge_lint"
- stage: "Test Build" # naming the Tests stage
script: make
name: "builds cloud and edge components" # names the first Tests stage job
- script: make edge_cross_build
name: "cross build edge" # names the fifth Tests stage job
- script: make bluetoothdevice
name: "build bluetooth_device"
- script: make edge_small_build
name: "build small edge version"
- script: make edge_cross_build
name: "cross build edge" # names the fifth Tests stage job
- script: make edge_cross_build_v7
name: "cross build edge for armv7" # names the fifth Tests stage job
- script: make edgesite_cross_build
name: "cross build edgesite" # names the fifth Tests stage job
- script: make edgesite_cross_build_v7
name: "cross build edgeitefor armv7" # names the fifth Tests stage job
- stage: "unit tests"
script: make edge_test
name: "unit test edge" # names the third Tests stage job
- script: make edge_integration_test
name: "integration test edge" # names the fourth Tests stage job
- script: make cloud_test
name: "unit test cloud"
- stage: "e2e tests"
script: make e2e_test
name: "e2e_test" # names the seventh Tests stage job
- stage: "build docker container"
script: make cloudimage
name: "build cloudimage"
- script: make edgeimage
name: "build edge image"
- script: make edgesiteimage
name: "build edgesite image"
- script: make bluetoothdevice_image
name: "build bluetoothdevice image"