[CI SKIP][CI] New prepare-tests job

master
ntimo 2020-03-22 15:02:26 +01:00
parent e491b835e5
commit fb7bafe254
No known key found for this signature in database
GPG Key ID: 3AF3627FB0440D55
1 changed files with 14 additions and 19 deletions

View File

@ -10,16 +10,21 @@ clone:
disable: true disable: true
steps: steps:
- name: prepare-tests
- name: download-tests
pull: default pull: default
image: timovibritannia/ansible image: timovibritannia/ansible
commands: commands:
- git clone https://github.com/mailcow/mailcow-integration-tests.git --branch $(curl -sL https://api.github.com/repos/mailcow/mailcow-integration-tests/releases/latest | jq -r '.tag_name') --single-branch . - git clone https://github.com/mailcow/mailcow-integration-tests.git --branch $(curl -sL https://api.github.com/repos/mailcow/mailcow-integration-tests/releases/latest | jq -r '.tag_name') --single-branch .
- chmod +x ci.sh
- chmod +x ci-ssh.sh
- chmod +x ci-piprequierments.sh
- ./ci.sh
- wget -O group_vars/all/secrets.yml $SECRETS_DOWNLOAD_URL --quiet - wget -O group_vars/all/secrets.yml $SECRETS_DOWNLOAD_URL --quiet
environment: environment:
SECRETS_DOWNLOAD_URL: SECRETS_DOWNLOAD_URL:
from_secret: SECRETS_DOWNLOAD_URL from_secret: SECRETS_DOWNLOAD_URL
VAULT_PW:
from_secret: VAULT_PW
when: when:
branch: branch:
- master - master
@ -41,14 +46,12 @@ steps:
pull: default pull: default
image: timovibritannia/ansible image: timovibritannia/ansible
commands: commands:
- chmod +x ci.sh - ./ci-piprequierments.sh
- ./ci.sh
- ansible-playbook mailcow-start-server.yml --diff - ansible-playbook mailcow-start-server.yml --diff
- ./ci-ssh.sh
environment: environment:
ANSIBLE_HOST_KEY_CHECKING: false ANSIBLE_HOST_KEY_CHECKING: false
ANSIBLE_FORCE_COLOR: true ANSIBLE_FORCE_COLOR: true
VAULT_PW:
from_secret: VAULT_PW
when: when:
branch: branch:
- master - master
@ -59,15 +62,12 @@ steps:
pull: default pull: default
image: timovibritannia/ansible image: timovibritannia/ansible
commands: commands:
- chmod +x ci.sh
- ./ci.sh
- sleep 120 - sleep 120
- ./ci-piprequierments.sh
- ansible-playbook mailcow-setup-server.yml --private-key /drone/src/id_ssh_rsa --diff - ansible-playbook mailcow-setup-server.yml --private-key /drone/src/id_ssh_rsa --diff
environment: environment:
ANSIBLE_HOST_KEY_CHECKING: false ANSIBLE_HOST_KEY_CHECKING: false
ANSIBLE_FORCE_COLOR: true ANSIBLE_FORCE_COLOR: true
VAULT_PW:
from_secret: VAULT_PW
when: when:
branch: branch:
- master - master
@ -78,14 +78,11 @@ steps:
pull: default pull: default
image: timovibritannia/ansible image: timovibritannia/ansible
commands: commands:
- chmod +x ci.sh - ./ci-piprequierments.sh
- ./ci.sh
- ansible-playbook mailcow-integration-tests.yml --private-key /drone/src/id_ssh_rsa --diff - ansible-playbook mailcow-integration-tests.yml --private-key /drone/src/id_ssh_rsa --diff
environment: environment:
ANSIBLE_HOST_KEY_CHECKING: false ANSIBLE_HOST_KEY_CHECKING: false
ANSIBLE_FORCE_COLOR: true ANSIBLE_FORCE_COLOR: true
VAULT_PW:
from_secret: VAULT_PW
when: when:
branch: branch:
- master - master
@ -96,14 +93,11 @@ steps:
pull: default pull: default
image: timovibritannia/ansible image: timovibritannia/ansible
commands: commands:
- chmod +x ci.sh - ./ci-piprequierments.sh
- ./ci.sh
- ansible-playbook mailcow-delete-server.yml --diff - ansible-playbook mailcow-delete-server.yml --diff
environment: environment:
ANSIBLE_HOST_KEY_CHECKING: false ANSIBLE_HOST_KEY_CHECKING: false
ANSIBLE_FORCE_COLOR: true ANSIBLE_FORCE_COLOR: true
VAULT_PW:
from_secret: VAULT_PW
when: when:
branch: branch:
- master - master
@ -112,8 +106,9 @@ steps:
status: status:
- failure - failure
- success - success
--- ---
kind: signature kind: signature
hmac: d0ded978bd57646ae10307a3e7fd6584658e285929596ad1ee391cf7330d6338 hmac: 567151e23311604bb1dbf1908a2c1195505dd389cafd7abacc9b2ee57e548d24
... ...