forked from AliyunContainerService/pouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.05 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
dist: trusty
sudo: required
language: go
go:
- 1.9.1
go_import_path: github.com/alibaba/pouch
notifications:
webhooks:
urls:
- http://47.96.190.121:6789/ci_notifications
on_failure: always
on_error: always
env:
- TEST_SUITE=unittest
- TEST_SUITE=integrationtest
- TEST_SUITE=critest
script: |
if [[ "${TEST_SUITE}" = "unittest" ]]; then
hack/install/install_ci_related.sh
make unit-test
make coverage
elif [[ "${TEST_SUITE}" = "integrationtest" ]]; then
make build
make build-daemon-integration
TEST_FLAGS= make build-integration-test
sudo env "PATH=$PATH" make install
sudo env "PATH=$PATH" make download_dependencies
sudo env "PATH=$PATH" make integration-test
make coverage
else
make build
TEST_FLAGS= make build-daemon-integration
sudo env "PATH=$PATH" make install
sudo env "PATH=$PATH" make download_dependencies
sudo env "PATH=$PATH" make cri-test
make coverage
fi
after_success:
- bash <(curl -s https://codecov.io/bash) -cF ${TEST_SUITE} -y .codecov.yml