Commit fecd7f6c authored by nanahira's avatar nanahira

add docker test back

parent 873efa5a
Pipeline #574 failed with stage
in 3 minutes and 56 seconds
......@@ -5,22 +5,32 @@ variables:
GIT_DEPTH: "1"
before_script:
- apt update && apt -y install python3-pip tar wget openssh-client openssh-server
- apt update && apt -y install python3-pip tar wget openssh-client openssh-server rsync
- ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y 2>&1 >/dev/null
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- systemctl start sshd
- pip3 install -U pip
- pip install -U ansible
- ansible --version
- wget -O - https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
- cp tests/ansible.cfg .
- chmod 600 ansible.cfg
- chmod 700 .
test_in_docker:
stage: test
tags:
- linux
image: debian:buster-slim
script:
- mkdir /run/sshd
- sshd
- ansible-playbook tests/test.yml --syntax-check
- ansible-playbook tests/test.yml
test_in_vm:
stage: test
tags:
- vc
script:
- systemctl start sshd
- ansible-playbook tests/test.yml --syntax-check
- ansible-playbook tests/test.yml
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