-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (36 loc) · 1.7 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
sudo: required
# Dummy changes 123
# We need the systemd for the kubeadm and it's default from 16.04+
dist: xenial
# This moves Kubernetes specific config files.
env:
- CHANGE_MINIKUBE_NONE_USER=true
before_script:
# Make root mounted as rshared to fix kube-dns issues.
- sudo mount --make-rshared /
# Download kubectl, which is a requirement for using minikube. Had to install kubeadm on local VM https://kubernetes.io/docs/setup/independent/install-kubeadm/
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
# Download Minikube.
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.30.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
# Download Helm
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh && chmod +x get_helm.sh && sudo ./get_helm.sh
# Socat is required fo proper Helm operation
- sudo apt-get update && sudo apt-get install -y socat
# TODO Install sudo apt install nfs-kernel-server
- sudo apt install -y nfs-kernel-server
- sudo bash ./scripts/host/configure_ubuntu_travis.sh
- cat ./tests/include/configuration.sh
- cat ./scripts/host/k_rebuild_environment.sh
- cat ./init_project.sh
- cat ./etc/config.yaml.dist
script:
# Run DevBox tests
- cd ./tests && sudo bash ./testsuite.sh && cd ..
after_script:
- sudo kubectl describe pods
- sudo kubectl describe deployments
- sudo kubectl get pv,pvc
- sudo kubectl logs -l app=magento -c monolith-xdebug
- sudo kubectl logs -l app=magento -c monolith
- sudo kubectl logs -l app=magento -c nginx
- sudo cat /etc/exports