-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
23 lines (18 loc) · 1.14 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
sudo: required
dist: xenial
language: go
go:
- 1.16
services: docker
script:
- make all
after_script:
- '[ -s OSSMediatorCollector/collector-lint-result.txt ] && { echo "OSSMediatorCollector has lint errors"; exit 1; }'
- '[ -s ElasticsearchPlugin/elasticsearchplugin-lint-result.txt ] && { echo "ElasticsearchPlugin has lint errors"; exit 1; }'
- 'echo "OSSMediatorCollector test results:" && cat OSSMediatorCollector/collector-unittest-result.txt'
- 'echo "ElasticsearchPlugin test results:" && cat ElasticsearchPlugin/elasticsearchplugin-unittest-result.txt'
- 'grep -e "FAIL:" OSSMediatorCollector/collector-unittest-result.txt && { echo "OSSMediatorCollector unit tests failed"; exit 1; }'
- 'grep -e "FAIL:" ElasticsearchPlugin/elasticsearchplugin-unittest-result.txt && { echo "ElasticsearchPlugin unit tests failed"; exit 1; }'
after_failure:
- '[ -s OSSMediatorCollector/collector-lint-result.txt ] && echo "OSSMediatorCollector lint errors:" && cat collector-lint-result.txt'
- '[ -s ElasticsearchPlugin/elasticsearchplugin-lint-result.txt ] && echo "ElasticsearchPlugin lint errors:" && cat elasticsearchplugin-lint-result.txt'