Skip to content
Snippets Groups Projects
Verified Commit f5c7b500 authored by Varac's avatar Varac
Browse files

Use artifacts instead of cache

Fixes #98
parent 11543837
No related branches found
No related tags found
No related merge requests found
......@@ -35,31 +35,27 @@ bootstrap:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- ANSIBLE_HOST_KEY_CHECKING=False python3 -u ./ci-bootstrap.py --create-droplet --create-domain-records --run-ansible --ansible-param skip-tags=helmfile
cache:
key: "$CI_PIPELINE_ID"
paths:
- test/inventory.yml
- test/group_vars/all.yml
artifacts:
paths:
- ansible/rke.log
- test/inventory.yml
- test/group_vars/all.yml
expire_in: 1 month
when: always
install:
stage: install-apps
image: "${CI_REGISTRY_IMAGE}/bootstrap-ci"
cache:
key: "$CI_PIPELINE_ID"
paths:
- test/inventory.yml
- test/group_vars/all.yml
- test/behave/behave.ini
script:
- cd test/
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- ANSIBLE_HOST_KEY_CHECKING=False python3 -u ./ci-bootstrap.py --use-existing-inventory --run-ansible --ansible-param tags=helmfile --write-behave-config
artifacts:
paths:
- test/behave/behave.ini
expire_in: 1 month
when: always
testinfra:
stage: test
......@@ -69,11 +65,6 @@ testinfra:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- cd test/
- py.test -v --connection=ansible --ansible-inventory=./inventory.yml --hosts='ansible://*'
cache:
key: "$CI_PIPELINE_ID"
paths:
- test/inventory.yml
policy: pull
behave:
# Needs to run in seperate stage since two concurent jobs
......@@ -90,11 +81,6 @@ behave:
- timeout -t 1200 sh -c 'while ! curl --cacert ./test/letsencrypt_staging_bundle.pem -s https://auth.ci-${CI_PIPELINE_ID}.ci.openappstack.net/auth/ > /dev/null; do date; echo "Waiting for LE cert..."; sleep 5; done'
- cd test/behave/
- behave -D headless=True --stop
cache:
key: "$CI_PIPELINE_ID"
paths:
- test/behave/behave.ini
policy: pull
artifacts:
paths:
- test/behave/screenshots/
......@@ -104,11 +90,6 @@ behave:
terminate:
stage: cleanup
image: "${CI_REGISTRY_IMAGE}/bootstrap-ci"
cache:
key: "$CI_PIPELINE_ID"
paths:
- test/inventory.yml
policy: pull
script:
# Remove droplet after successful tests
- cd test/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment