-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (72 loc) · 4.35 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
sudo: required
services:
- docker
language: python
python:
- '2.7'
- '3.6'
install:
- echo ok
- sudo apt-get install golang-1.10-go
- curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
- sudo apt-get update
- sudo apt-get install -y kubectl
- /usr/lib/go-1.10/bin/go version
- export GOROOT=/usr/lib/go-1.10
- /usr/lib/go-1.10/bin/go get sigs.k8s.io/kind
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | sudo bash
- kind create cluster
- export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
- docker build -t yadage/crdctrl:latest -f images/crdctrl/Dockerfile images/crdctrl
- kind load docker-image yadage/crdctrl:latest
script:
- echo ok
- kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts
- helm init --service-account default --wait --upgrade
- sleep 30
- kubectl create namespace yadage
- cd helm; helm install metacontroller; cd -
- cd helm; helm install yadage --set crdctrl_image=yadage/crdctrl:latest; cd -
- sleep 20
- kubectl get pods -n yadage
- kubectl create -f crd/pvc.yml -f crd/pv.yml
- kubectl create -f examples/wflow_mg.yml
- sleep 60
- kubectl get pods
- kubectl get pods|grep myflow-yadage|awk '{print $1}'|xargs kubectl logs -f
- docker exec kind-control-plane cat /mnt/workdir/delphes/output.lhco
jobs:
include:
- stage: helm
install:
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | sudo bash
script:
- wget https://github.com/yadage/yadage-crd/archive/gh-pages.zip
- unzip gh-pages.zip
- cd helm; helm package yadage; helm package metacontroller; cd -
- cp helm/*tgz yadage-crd-gh-pages
- cd yadage-crd-gh-pages; helm repo index .;cd -
deploy:
provider: pages
local-dir: yadage-crd-gh-pages
skip-cleanup: true
github-token:
secure: "lBilWOX2Uv8O04Glnka+VyfTXJwrHW9Xk4tHO5c0ADSi/ekwJ0sM4nq8iYQ6Udu3HKaWNhG+KNrGeZRtxhK+kGR1TpRcQABK3MWNOZBHZsTGAhuExzUx0sfSYZ9kz6JaeejwXPH0JOAlRP7ZMJdB+VBv0NDJPwFc4p4jHg9SXEFahTKs6j1xGcfIzNtWnpZtJLmZTKKPSRgGxq75tSfPe4bEjSmhp+Q9yLq2mK939y7Fxi5UQMD1r/ieHfRgv5cew5+yRA58vLeYlt+TwCZNyiUEBkoI0EwMn7PtnoRyfpcs49tR+cscuzdt6K8rI624yU3Kcqc2AX0o1WwIUn5nbxRs7T9llYntVikkmWfI1eTmLnWGERYJIdKpwklQpLGPdGHdP7uP0XLmiysiGrji3dEAfDpy0y3X0JkXF8Ut/KwxGpdvTqWRJ87AZInVz4cxpfPQOWF/cnqpfAa3S3eB8pMegvDjKtkluhEd8uG0wsAcyt6a7b9Gsq29GEqpZfsPqZU9RO6FG3uitqiqNT9bKHrNOMtK6zADgfaOLUWCOCk0v0sPCGL0aci+XttoKbW3XflC4wvl9PXG4EBrxVmE+uIjLeQQk9rBKYLYfgFpJsyQG809TLqa/sumZa9NaIdTS0VIKEA0uQPnp3a+50pWcL8/6BlrgfDd4ov9GL9PR3w="
keep-history: true
on:
tags: true
- stage: docker
env:
- secure: "HmR60FsxcD78cYjx8OLFrkdm2Rgl0avW1LQXhFfMt2wSLC8Z2NHe8FaS+uWJzKbdPbIuByhE8n5hwNXm+85cxpSAMue6N+4zyte3y39PKai5jsepEdS7KIpBXgZh77RNFFRihPGDlH7DYnE5Fw0TBUIaQmXhwuX/B2po/JyKRu0zX6AZiICakq2hcNYHizTGmHNGrBIQrWWVCSvv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v2A+iOl/0VbvCZ62TwLzpCTZjZJqz28MFlvJLFuNSxwcKNVYuzDsFWQkpkd4JVbgmkF4SZSqPF/XTOm0xQ="
install:
- echo none 1
script:
- echo none
deploy:
provider: script
script: ./deploy/deploy.sh
on:
tags: true
branch: master