-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (40 loc) · 3.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
dist: xenial
sudo: required
language: python
python: 3.7
addons:
sonarcloud:
organization: "aroundthecode-github"
token: ${SONAR_TOKEN}
cache:
directories:
- '$HOME/.sonar/cache'
env:
global:
- CHANGE_MINIKUBE_NONE_USER=true
- secure: "DYWWFapYrhLfbFCoGFA7Wn5nIcvS+6ha61UWWvH0KxsELtkydNdJpccmEr6j0BK/5FpWWnrBSJuDxnEEk3LbC8nnAUVjgyl+js5v2DUI5WngRLi7e3wD+3aWCfNAnO4xvggmccOssNj2jM+4VarbdVk040HV8AiHX7pzXgrv2/3fCB1WBT201fjyOMarTJv2+VliII5VgxI4FgsJUlHc7J6Pu6ggFqTSdofUlAIfKV+zhTmwhkBkpI8H/hJe2w0QXFMGor1VF1MDIkGPHBIZjRE+H9y7O4CWGOeHPjPX6l7FSX81NcMiYJEb5ZjjGiSRMXPrefmUkQCGcnLIEyD8Oix/UlwqCZUQCSBnW+kQIGwfUCY51HsAK0h7WfRt/SzC+4MIaxn78XC6LYCQgpwDSXUJx2wAiUUxDVRj/rgjN0D0jSxuzR7sVE99hjNVKkicdWIezggkdMlk/OlPoHKN89C9zoDDTE/4H/SCDGpX4sNEsF5qZr3B/DQ22lx9wT43TAFwmZE0nhR17ZHOyRvQNL7IC7C3p28OVbF8gxw5NqrQyccOxfUNp/bkC8raouuRoxOlNkzeEZQJ8ooP/aLfNCUyq4QdFd1WpaWK5VxRHy24ir/nRFLzXqwwHDB1yoBH134M/eY66HoFzDh/1j8ibpkiDyluscT3/OsC1v2MTJo="
- secure: "AcCoFC+47msJ3lZR4Nzb+j9INL2aJTNzpyJvw6cBuC6v262lM/CghSXlTXH+0XJxztigdXBaf8KbJPETdeLa7qRQCiw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B3KH7RTNgc0vYexUXqlBKhYmtQvian0buvpGdwlbzRnOSpXAfFJ4OlnUNyRcNd10BK6mWFic49gP4Su7RtDxW2yqUK110eR4tgB3AQXFwwEhYonXn7VHJx0CBrbML/X6zSUt96hk5HeOpwTP+ljIOp/hcxO/I69MBK572px8IkOn57RPXI6kdAuy+2zHjyqChiqy7CZcEbtI/rY3Y="
before_install:
- mkdir $HOME/.kube || true
- touch $HOME/.kube/config
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.12.4/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.33.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
- minikube version
- sudo minikube config set WantReportErrorPrompt false
- sudo minikube start --vm-driver=none --kubernetes-version=v1.12.4 --logtostderr
- minikube update-context
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
install:
- kubectl apply -f tests/minikube/configmap2consul.yaml
- pip install -e ".[test]"
script:
- kubectl cluster-info
- kubectl get pods --all-namespaces
- chmod +x make.sh
- ./make.sh test_minikube
- ./make.sh sonar
- ./make.sh build
- docker login -u="${DOCKER_HUB_USERNAME}" -p="${DOCKER_HUB_PASSWORD}"
- docker tag ${DOCKER_HUB_USERNAME}/configmap2consul:latest ${DOCKER_HUB_USERNAME}/configmap2consul:2.0.0
- docker push ${DOCKER_HUB_USERNAME}/configmap2consul:latest