forked from bhavyabapna/terraform-provider-nutanix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
88 lines (81 loc) · 2.18 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
86
87
88
---
language: go
#cache:
# directories:
# - vendor
# - /home/travis/gopath/pkg
git:
depth: 1
go_import_path: github.com/terraform-providers/terraform-provider-nutanix
script:
- export GOPATH="${TRAVIS_BUILD_DIR}/vendor:$GOPATH"
- make cibuild
stages:
- sanity testing
- build go 1.9
- build go 1.10
- build go master
- acceptance testing
jobs:
include:
- stage: sanity testing
script:
- make deps
- make extrasanity
go: 1.10.x
# Build Go 1.9.x
- stage: build go 1.9
go: 1.9.x
script: make cibuild
env: GOOS=darwin GOARCH=amd64
- script: make cibuild
go: 1.9.x
env: GOOS=windows GOARCH=amd64
- script: make cibuild
go: 1.9.x
env: GOOS=linux GOARCH=amd64
- script: make cibuild
go: 1.9.x
env: GOOS=linux GOARCH=ppc64le
# Build Go 1.10.x
- stage: build go 1.10
go: 1.10.x
script: make cibuild
env: GOOS=darwin GOARCH=amd64
- script: make cibuild
go: 1.10.x
env: GOOS=windows GOARCH=amd64
- script: make cibuild
go: 1.10.x
env: GOOS=linux GOARCH=amd64
- script: make cibuild
go: 1.10.x
env: GOOS=linux GOARCH=ppc64le
# Build Go master (helps hedge against upstream code breaking downstream builds later, acts as a canary)
- stage: build go master
go: tip
script: make cibuild
env: GOOS=darwin GOARCH=amd64
- script: make cibuild
go: tip
env: GOOS=windows GOARCH=amd64
- script: make cibuild
go: tip
env: GOOS=linux GOARCH=amd64
- script: make cibuild
go: tip
env: GOOS=linux GOARCH=ppc64le
- stage: acceptance testing
go: 1.10.x
script:
- go get github.com/schrej/godacov
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- travis_wait make citest
- ./cc-test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT
- godacov -t $CODACY_TOKEN -r ./c.out -c $TRAVIS_COMMIT
matrix:
fast_finish: true
allow_failures:
- go: tip