-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·29 lines (23 loc) · 1.09 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
sudo: required
language: bash
services:
- docker
env:
- BOOTKUBE_CONF_NETWORK_PROVIDER=--network-provider=flannel TRAVIS_HAS_HOSTPORT=1
# - BOOTKUBE_CONF_NETWORK_PROVIDER=--network-provider=experimental-canal
- BOOTKUBE_CONF_NETWORK_PROVIDER=--network-provider=experimental-calico
before_script:
- sudo curl -sSL --fail https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl
- sudo chmod +x /usr/local/bin/kubectl
- env | grep 'BOOTKUBE_CONF_NETWORK_PROVIDER\|TRAVIS' > travis.env
- export KUBECONFIG=$(pwd)/data/kubeconfig
- docker-compose -f docker-compose.yaml -f docker-compose.travis.yaml build
script:
- docker-compose -f docker-compose.yaml -f docker-compose.travis.yaml up -d --scale node=0
- docker-compose exec master wait-for-bootkube-ready.sh
- ./test/wait-for-ready.sh
- ./test/test-worker-scale.sh
- ./test/test-pod.sh
- ./test/test-service.sh
after_script:
- docker-compose -f docker-compose.yaml -f docker-compose.travis.yaml down -v