-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
69 lines (54 loc) · 1.59 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
language: go
os: linux
dist: xenial
env:
global:
- upstream="armPelionEdge/maestro"
- GOBIN="./bin"
addons:
hosts:
- WWRL000000
services:
- docker
# GoLang has an odd dependency management scheme. Imports are hard-linked to
# their parent repos. Forked repos therefore must either modify _all_ of their
# imports, or change their directory naming to match their parent.
#
# For reasons that I hope are obvious, we do the latter here.
install:
- |
if [[ "${TRAVIS_REPO_SLUG}" != "${upstream}" ]]; then
mkdir -p "../../${upstream}"
mv * ".git" "../../${upstream}/"
cd "../../${upstream}"
fi
script:
# Build dependencies
- ./build-deps.sh
# Build maestro
- ./build.sh
# Run devicedb in docker
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
docker run --rm -d -p 127.0.0.1:9090:9090/tcp senramakri/test_images:devicedb_nocluster
sleep 10
fi
# Run unit tests
- cd "../../${upstream}"
- go build
- ( cd sysstats && go test -v )
- ( cd maestroConfig && go test -v )
- ( cd vendor/github.com/PelionIoT/maestroSpecs && go test -v )
- ( cd networking && go test -v -run NetworkConfigInDDB )
- ( cd networking && go test -v -run NetworkConfigSimpleUpdateInDDB )
- ( cd networking && go test -v -run ConfigCommitUpdateInDDB )
- ( cd networking && go test -v -run NetworkConfigNameserversUpdateInDDB )
- ( cd networking && go test -v -run NetworkConfigUpdateInDDBMultipleInterfaces )
matrix:
include:
- name: "go v1.10"
go: 1.10.x
- name: "go v1.11"
go: 1.11.x
- name: "go v1.12"
go: 1.12.x