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
Merge requests
!2
CI: port Travis config to GitLab
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
CI: port Travis config to GitLab
add/ci
into
master
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Erick Hitter
requested to merge
add/ci
into
master
6 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
7845a9b3
Prev
Next
Show latest version
1 file
+
31
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7845a9b3
Port Travis config for GitLab CI
· 7845a9b3
Erick Hitter
authored
6 years ago
.gitlab-ci.yml
0 → 100644
+
31
−
0
Options
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
lint
:
stage
:
test
script
:
-
ansible-playbook tests/test.yml -i tests/inventory --syntax-check
Loading