File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : go
22
3- go :
4- - " 1.10.x"
5- - " 1.11.x"
3+ matrix :
4+ include :
5+ - go : " 1.10.x"
6+ - go : " 1.11.x"
7+ env : RUN_SNYK=true
68
79before_install :
810 - go get -u gopkg.in/alecthomas/gometalinter.v2
911 - gometalinter.v2 --install
10- - sudo apt-get install -y nodejs
11- - npm install -g snyk
12+ - " if [[ $RUN_SNYK ]]; then sudo apt-get install -y nodejs; fi "
13+ - " if [[ $RUN_SNYK ]]; then npm install -g snyk; fi "
1214
1315install :
1416 - go get -t -v ./...
15- - snyk test --org=maxmind
17+ - " if [[ $RUN_SNYK ]]; then snyk test --org=maxmind; fi "
1618
1719after_success :
18- - snyk monitor --org=maxmind --project-name=maxmind/mm-network-analyzer
20+ - " if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' && $RUN_SNYK ]]; then snyk monitor --org=maxmind --project-name=maxmind/mm-network-analyzer; fi "
1921
2022script :
2123 - go test -v ./...
You can’t perform that action at this time.
0 commit comments