Commit 90157e93 authored by nanahira's avatar nanahira

rework CI

parent 66735d47
Pipeline #14120 canceled with stage
......@@ -5,23 +5,36 @@ variables:
GIT_DEPTH: "1"
DEBIAN_FRONTEND: noninteractive
before_script:
- apt update && apt -y install python3-pip tar wget openssh-client openssh-server rsync || dnf -y install python3-pip tar wget openssh openssh-server rsync || yum -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
- pip3 install -U pip -i https://mirrors.aliyun.com/pypi/simple/
- pip install -U ansible==2.9 -i https://mirrors.aliyun.com/pypi/simple/
- ansible --version
- wget -O - https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
- cp tests/ansible.cfg .
- chmod 700 .
vm:
.base:
stage: test
tags:
- vc
image: debian:buster
script:
- systemctl start sshd
- apt update && apt -y install python3-pip tar wget || dnf -y install python3-pip tar wget || yum -y install python3-pip tar wget
- pip3 install -U pip -i https://mirrors.aliyun.com/pypi/simple/
- pip install -U ansible==2.9 jinja2==3.0 -i https://mirrors.aliyun.com/pypi/simple/
- ansible --version
- wget -O - https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
- cp tests/ansible.cfg .
- chmod 700 .
- ansible-playbook tests/test.yml --syntax-check
- ansible-playbook tests/test.yml
debian:
extends: .base
image: debian:bullseye
ubuntu:
extends: .base
image: ubuntu:jammy
centos7:
extends: .base
image: centos:7
centos8:
extends: .base
image: centos:8
fedora:
extends: .base
image: fedora:latest
......@@ -17,3 +17,4 @@
china_mirror_omf: true
hosts:
localhost:
ansible_connection: local
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