Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
gitlab-runner
Commits
e1f34a02
Commit
e1f34a02
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into add/machine-opts
parents
2499b3f1
0472fee0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Support runner options for Docker Machine
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+33
-0
33 additions, 0 deletions
.gitlab-ci.yml
tests/test.yml
+1
-1
1 addition, 1 deletion
tests/test.yml
with
34 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
33
−
0
View file @
e1f34a02
image
:
python:2.7
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache
:
paths
:
-
.cache/pip
-
venv/
before_script
:
-
python -V
-
pip install virtualenv
-
virtualenv venv
-
source venv/bin/activate
-
pip install ansible
-
chmod 700 $(pwd)
-
printf '[defaults]\nroles_path=../' > ./ansible.cfg
-
ls -la ./
lint
:
stage
:
test
script
:
-
ansible-playbook tests/test.yml -i tests/inventory --syntax-check
This diff is collapsed.
Click to expand it.
tests/test.yml
+
1
−
1
View file @
e1f34a02
...
...
@@ -2,4 +2,4 @@
-
hosts
:
localhost
remote_user
:
root
roles
:
-
ansible-
gitlab-runner
-
gitlab-runner
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment