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 apt-get install ansible -y
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 (cd ~/.ansible/roles/collivier.xtesting; patch -p1 < tests/docker_config_json.patch)
29 ansible-galaxy collection install -f -r ~/.ansible/roles/collivier.xtesting/requirements.yml
30 ansible-playbook -vvvv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml
33 name: xtesting-ci-node
40 name: 'xtesting-ci-tests-{release}-{playbook}'
48 use-build-blocker: true
49 blocking-level: 'NODE'
51 - '^xtesting-ci-tests-.*$'
54 playbook: '{playbook}'
58 name: xtesting-ci-tests
95 - 'xtesting-ci-tests-{release}-{playbook}'
107 regex: ^xtesting-ci-tests-.*$