| |
@@ -1,27 +1,15 @@
|
| |
---
|
| |
- hosts: localhost
|
| |
- vars:
|
| |
- - artifacts: ./artifacts
|
| |
- tags:
|
| |
- - atomic
|
| |
- - classic
|
| |
- - container
|
| |
- tasks:
|
| |
- - name: Make artifacts directory
|
| |
- file: path={{ artifacts }} state=directory owner=root mode=755 recurse=yes
|
| |
-
|
| |
- - name: Install optional dependencies
|
| |
- package: name={{ item }} state=present
|
| |
- with_items:
|
| |
- - python-markdown
|
| |
- - python-pygments
|
| |
-
|
| |
- - block:
|
| |
- - name: Run cheetah built-in tests
|
| |
- shell: cheetah test > {{ artifacts }}/test.log 2>&1
|
| |
-
|
| |
- - always:
|
| |
- - name: Pull out the artifacts
|
| |
- fetch:
|
| |
- dest: "{{ artifacts }}/"
|
| |
- src: "{{ artifacts }}/"
|
| |
+ roles:
|
| |
+ - role: standard-test-basic
|
| |
+ tags:
|
| |
+ - atomic
|
| |
+ - classic
|
| |
+ - container
|
| |
+ tests:
|
| |
+ - cheetah-test:
|
| |
+ dir: ./
|
| |
+ run: cheetah test 2>&1
|
| |
+ required_packages:
|
| |
+ - python3-markdown
|
| |
+ - python3-pygments
|
| |
Switch to use standard-test-basic role as it solves some issues:
1. Should be possible to set artifacts directory using environment variables
2. fetch does not work for directory