forked from kiali/kiali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (59 loc) · 4.57 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
language: go
arch:
- amd64
- arm64
- ppc64le
jobs:
# Sometimes it takes a very long time to spin up an ARM machine on travis.
# Because of this, we will not require arm64 builds in order for a PR to go green.
fast_finish: true
allow_failures:
- arch: arm64
- arch: ppc64le
include:
- arch: amd64
- arch: arm64
- arch: ppc64le
- name: Snyk
if: branch == master AND fork == false
node_js:
- 12
env:
- NODE_OPTIONS=--max-old-space-size=8192
- secure: fA6zOOsbgJXlHe9nkuW4XOAtfQ9QTxorDJGLA97ic1+tCWpJzJlcTJ+cW1vMQXvpmoyLzZWl8PhS9PLeHY5wgwPc+EtTAc1l9JhNPr72V0yPCuZdIwc9HHG6gDFaoy28Ms4NFwIWFST11ZaZ0BLoi11uIDScngtcvbW94/HUw9giSpAbPGAjCa1+uLw4Oci678W072b0gtaTs8HujpePB1aofBhx1p6ZVMCY/O7VjJ6UdOcyBtNL8/DfupKHAQIpbNFvqO+GpscVNY7ZNyubj7K3Fw2CGSrvZ3V0iBcliA3jhQ8+bTTE0IvuXPcy79Cid5YQgxCcmAPlwkZeo8dLMspdTFiGkFINfAZkrfODWO1wgQ9tpJtCCr/PnycBYliT1XW1lCr2Uw2K5u0cn0JHeJLUwZPBKG9vTzq8zjIQBae7ZCb7x1PcuznbQpvo0zIkDOyNTJI5w5waroZ8VBJ8VkYNe0sNw0GgeM2doHVKPkayx/I1LgqBYv2oktLf25uhIvzKR3jByCsVOiWdw9/lvluQ77F4qzyDa58M9KM3FMsP84izxEQXjrgLUwIsgqvW9B9EROW9Thllllvc1/3gVKADYbiSD03RML7W1T+q8tX7KUiru1kGGSGjX7VDy46YooiUAA/Ou8aw9mP4jjN6eTEL2moZMN1frOgI9EJ49aY=
install:
- npm install -g snyk
script:
- if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then snyk monitor --org=kiali --prune-repeated-subdependencies; fi
- if [ "$TRAVIS_EVENT_TYPE" != "push" ]; then snyk test --org=kiali --prune-repeated-subdependencies; fi
go:
- 1.14.7
cache:
directories:
- $HOME/gopath/pkg/mod
# The channel name "chat.freenode.net#kiali" is encrypted to prevent IRC spam from forks
notifications:
irc:
channels:
- secure: dYuECNEpIWxWpC3J1VURDSEPM/XS29bX6bTPeaCQ+xHvek9QQ6n6e2SMHkmHYU2yXShY/AxTGKaxUrMqxsQx5VlU+tEk77zy3V9McvgxPrHLAvWsMsNkItHAD8xu6KqXDaXHhy1eYFqo0hvmycXmqOOQ/pRTGnBg4x4Gr151Ej2VgmufdKobFXFOS+VXnsitJr3GjvyLU4jIwu4oj+9svH9bI8cLyZuVFsI61ortKsAs2kjZcm8HlHCzxHCyHKlQ9JzyNXUiw6pMt19KXnzgRCkNNkCF2BbUhNSJmd97+oNb7ldvlfm7Gxx2uBiVUcOdQMO8MHJtqG1+7NDi08DrIyDPOnbN2EGPikPgHmyNjtGTKGw/M8MO97cNsBpA6jc8tWZ9dVeVHjQmy6/QzpNtKCM8u0d4Buk4+8IcAhkaP9Zdf1oKrTOYsmpjuPeGNU011NNj/O97hG9dUEqX6zfPvqgrx91KAyJeyoYaMHT9ZaRWVFUMN6kiJkmZnwAvuBOIYNH99w8LlO0SVf6ODGDIWfJybWBT/7jXfAFA9Z58yHdGmh2q8kvBXcXK+pYxmlrMKqxv52JTZCSfPBzfZfEVUd33ZocnQRINZKcgqxQQrdYJVmL07MEriuR8MxwsICz5ZkHBivHeJdSK6qUjk3f3waxletrPBW5hbnpnG0HhS+M=
on_success: change
on_failure: change
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
env:
global:
- secure: "qy2ptBm0rm1gu2tWGRYZ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aXlFc17raa+gxihSQNVV1weyifng9+IO5JRoi1B9unOwuAl71Xt34uMAjCWJ2tZS/w4c5IPUaSlaXO4ULEgn0YEjxFnrroxBexFkWlgnT8wrjOg3JUOSbNSB1X81IoSEYiDg+Ddt/zn8lS0fQwAMvsuAODdY5EnMbLFDUKOEZxMl6GVAvDzp0LxGfzFLlHTGkPBy92Ox/59qRLXVvUcCn++Dl9TvnI5g8mSTcWjmDDHyTSShzfO/y/+aMc2mQ/OEYZ7u5o8qHOgeqFjrzHN72P0="
# The project committed the vendor directory into source so there is no need for
# travis to install dep and pull down dependencies.
# Therefore, the dep-X targets are commented out here. Uncomment these if the project
# decided to no longer commit vendor dependencies into the source tree.
# See: https://github.com/golang/dep/blob/master/docs/FAQ.md#should-i-commit-my-vendor-directory
install:
- make swagger-install
- make lint-install
script:
- if [ ! -z "$(gofmt -l ${GO_FILES})" ]; then echo "These files need to be formatted:" "$(gofmt -l ${GO_FILES})";echo "Diff files:"; gofmt -d ${GO_FILES}; exit 1; fi # Gofmt Linter
- make lint
- make swagger-travis
- make clean build test-race