forked from kubeedge/kubeedge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (54 loc) · 1.4 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
language: go
git:
depth: false
os: linux
dist: focal
services:
- docker
go:
- 1.16
env:
- HOME=/home/travis CONTAINER_RUN_OPTIONS=" "
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md)|(\.png)|(\.pdf)|(\.html)|^(LICENSE)|^(docs)|^(OWNERS)|^(MAINTAINERS)'
then
echo "Only doc files were updated, skip running the CI."
travis_terminate 0
fi
docker pull kubeedge/build-tools
install: skip
jobs:
include:
- stage: "Test on arm64"
name: "build, smallbuild"
arch: arm64
before_script:
- export GOFLAGS=-mod=vendor
script:
- make
- make smallbuild
- name: "unit test, integration test edge"
arch: arm64
before_script:
- export GOFLAGS=-mod=mod
script:
- make test
- name: "build docker images on arm64"
arch: arm64
script:
- make image
- name: "e2e test"
arch: arm64-graviton2
virt: vm
group: edge
before_script:
- command -v ginkgo || go install github.com/onsi/ginkgo/ginkgo@latest
- go install sigs.k8s.io/[email protected]
- curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.6/bin/linux/arm64/kubectl && sudo install kubectl /usr/local/bin/kubectl
script:
- make e2e