Commit 1ec77dc8 authored by nanahira's avatar nanahira

add test

parent b3158f0e
stages:
- test
variables:
GIT_DEPTH: "1"
script:
- apt update && apt -y install python3-pip tar wget
- pip3 install -U pip
- pip install -U ansible
- ansible --version
- cd tests
- wget -O - https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
- ansible-playbook test.yml --syntax-check
- ansible-playbook test.yml
test_in_vm:
stage: test
tags:
- vc
test_in_container:
stage: test
tags:
- linux
image: debian:buster-slim
[defaults]
inventory = ./inventory.yaml
host_key_checking = False
strategy_plugins = mitogen-0.2.9/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
---
localhost:
ansible_ssh_user: root
install_docker: true
china_mirror: false
china_mirror_docker: true
china_mirror_pip: true
registry: https://registry.mycard.moe
upgrade: false
reboot: false
pip_executable: pip
cpufreq_policy: performance
allow_password: false
vm_agents_status: present
china_mirror_omf: true
--- ---
- hosts: localhost - hosts: test
remote_user: root remote_user: root
roles: roles:
- init - init
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment