3 name: xtesting-ci-tests
7 sudo apt-get install python3-pip -y
8 curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
10 sudo mv ./kind /usr/local/bin/kind
11 kind delete clusters xtesting jenkins gitlab || true
12 sudo docker ps -aq |xargs sudo docker stop || true
13 sudo docker ps -aq |xargs sudo docker rm || true
14 sudo docker system prune -f --all || true
15 sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf
16 sudo systemctl daemon-reload
17 sudo systemctl restart docker
19 sudo pip3 install ansible
20 rm -rf ~/.ansible/roles/collivier.xtesting
23 ansible-galaxy install -f collivier.xtesting ;;
25 ansible-galaxy install -f git+https://github.com/collivier/ansible-role-xtesting.git,{release}
26 mv ~/.ansible/roles/ansible-role-xtesting ~/.ansible/roles/collivier.xtesting ;;
28 ansible-galaxy collection install -f -r ~/.ansible/roles/collivier.xtesting/requirements.yml
29 ansible-playbook -vvvv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml
32 name: xtesting-ci-slave
39 name: 'xtesting-ci-tests-{release}-{playbook}'
47 use-build-blocker: true
48 blocking-level: 'NODE'
50 - '^xtesting-ci-tests-.*$'
53 playbook: '{playbook}'
57 name: xtesting-ci-tests
94 - 'xtesting-ci-tests-{release}-{playbook}'
106 regex: ^xtesting-ci-tests-.*$