mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Add molecule test for role
Only test default installation with jbig2enc and sqlite
This commit is contained in:
parent
ef9631ae24
commit
1276419ec6
10
.travis.yml
10
.travis.yml
@ -33,6 +33,16 @@ jobs:
|
|||||||
- ng build --prod
|
- ng build --prod
|
||||||
after_success: true
|
after_success: true
|
||||||
|
|
||||||
|
- name: "Ansible role"
|
||||||
|
sudo: required
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
install:
|
||||||
|
- python3 -m pip install molecule[ansible,docker]
|
||||||
|
script:
|
||||||
|
- cd ansible/
|
||||||
|
- molecule test
|
||||||
|
after_success: true
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
|
7
ansible/molecule/default/converge.yml
Normal file
7
ansible/molecule/default/converge.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "Include ansible"
|
||||||
|
include_role:
|
||||||
|
name: "ansible"
|
21
ansible/molecule/default/molecule.yml
Normal file
21
ansible/molecule/default/molecule.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
dependency:
|
||||||
|
name: galaxy
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
platforms:
|
||||||
|
- name: debian_buster
|
||||||
|
image: jrei/systemd-debian:10
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
|
tmpfs:
|
||||||
|
- /tmp
|
||||||
|
- /run
|
||||||
|
- /run/lock
|
||||||
|
override_command: False
|
||||||
|
# debian 9 stretch only has Python 3.5 which is EOL and breaks multiple dependencies
|
||||||
|
provisioner:
|
||||||
|
name: ansible
|
||||||
|
verifier:
|
||||||
|
name: ansible
|
14
ansible/molecule/default/verify.yml
Normal file
14
ansible/molecule/default/verify.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# This is an example playbook to execute Ansible tests.
|
||||||
|
|
||||||
|
- name: Verify
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: check if webserver is up
|
||||||
|
uri:
|
||||||
|
url: http://localhost:8000
|
||||||
|
status_code: [200, 302]
|
||||||
|
return_content: yes
|
||||||
|
register: landingpage
|
||||||
|
failed_when: "'Sign in</button>' not in landingpage.content"
|
Loading…
x
Reference in New Issue
Block a user