diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-22 07:37:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-22 07:37:58 +0800 |
commit | 4df2e1ef5c20ebd7004a595de7e6a032699106ad (patch) | |
tree | 9b9f06036d2d0fa7771f69aaf29c011628346816 /tests/files/ansible/roles | |
parent | 67f9783e6a0fa5613a031e05549b92adbee57399 (diff) | |
download | go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.tar go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.tar.gz go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.tar.bz2 go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.tar.lz go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.tar.xz go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.tar.zst go-tangerine-4df2e1ef5c20ebd7004a595de7e6a032699106ad.zip |
updated tests
Diffstat (limited to 'tests/files/ansible/roles')
-rw-r--r-- | tests/files/ansible/roles/common/tasks/main.yml | 28 | ||||
-rw-r--r-- | tests/files/ansible/roles/testrunner/tasks/main.yml | 18 |
2 files changed, 46 insertions, 0 deletions
diff --git a/tests/files/ansible/roles/common/tasks/main.yml b/tests/files/ansible/roles/common/tasks/main.yml new file mode 100644 index 000000000..3c483ce13 --- /dev/null +++ b/tests/files/ansible/roles/common/tasks/main.yml @@ -0,0 +1,28 @@ +--- +- name: install docker + sudo: true + # install script from https://docs.docker.com/installation/ubuntulinux/ + shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh + +- name: install package dependencies + sudo: true + apt: name={{ item }} + with_items: + - python-pip + - htop + +- name: install python dependencies + sudo: true + pip: name=docker-py + + +- name: enable docker for standard user + sudo: true + # todo: how to logout after this command, otherwise won't be effective in this play + user: name=vagrant groups=docker append=yes + +- name: checkout test repo + git: + repo: https://github.com/sveneh/tests.git + version: develop + dest: git diff --git a/tests/files/ansible/roles/testrunner/tasks/main.yml b/tests/files/ansible/roles/testrunner/tasks/main.yml new file mode 100644 index 000000000..ce7fd8efa --- /dev/null +++ b/tests/files/ansible/roles/testrunner/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: update C++ client + sudo: true + docker_image: + path: git/ansible/test-files/docker-cpp + name: cpp + state: build + +- name: update Go client + sudo: true + docker_image: + path: git/ansible/test-files/docker-go + name: go + state: build + +- name: Run infinite tests (press ^C to stop) + sudo: true + shell: git/ansible/test-files/testrunner.sh |