aboutsummaryrefslogblamecommitdiffstats
path: root/ansible/roles/testrunner/tasks/main.yml
blob: 7998dee72782e68dde2da211f85112f7bc9d3e28 (plain) (tree)
1
2
3
4
5
6
7
8
9
   

                         

                                                                             
                  


                                                                                              
 

                        
                                                                         

                  


                                                                                             
 















                                                                                                                                    
---
- name: update C++ client
  docker_image:
      path: /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-cppjit
      name: cppjit
      state: build
#  command: docker build -t cpp /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-cpp
  async: 3600
  poll: 5

- name: update Go client
  docker_image:
      path: /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-go
      name: go
      state: build
#  command: docker build -t go /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-go 
  async: 3600
  poll: 5

- name: update Python client
  docker_image:
      path: /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-python
      name: python
      state: build
  async: 3600
  poll: 5

- name: Run infinite tests 
  shell: seq {{ ansible_processor_vcpus }} | parallel --max-args=0 /home/{{ ansible_ssh_user }}/git/ansible/test-files/testrunner.sh
  async: "{{ 3600 * 2 }}"
  poll: 0
  register: log_runner

- name: verify previous task
  async_status: jid={{ log_runner.ansible_job_id }}