Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
1ec77dc8
Commit
1ec77dc8
authored
Aug 04, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test
parent
b3158f0e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
4 deletions
+50
-4
.gitlab.ci.yml
.gitlab.ci.yml
+28
-0
tests/ansible.cfg
tests/ansible.cfg
+5
-0
tests/inventory
tests/inventory
+0
-2
tests/inventory.yaml
tests/inventory.yaml
+15
-0
tests/test.yml
tests/test.yml
+2
-2
No files found.
.gitlab.ci.yml
0 → 100644
View file @
1ec77dc8
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
tests/ansible.cfg
0 → 100644
View file @
1ec77dc8
[defaults]
inventory = ./inventory.yaml
host_key_checking = False
strategy_plugins = mitogen-0.2.9/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
tests/inventory
deleted
100644 → 0
View file @
b3158f0e
localhost
tests/inventory.yaml
0 → 100644
View file @
1ec77dc8
---
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
tests/test.yml
View file @
1ec77dc8
---
---
-
hosts
:
localho
st
-
hosts
:
te
st
remote_user
:
root
remote_user
:
root
roles
:
roles
:
-
init
-
init
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment