Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
deploy-key
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
deploy-key
Commits
dd768002
Commit
dd768002
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Seperate tests (pre-commit and molecule) using tox.
parent
1ba0eade
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.travis.yml
+11
-13
11 additions, 13 deletions
.travis.yml
molecule.yml
+4
-0
4 additions, 0 deletions
molecule.yml
tox.ini
+22
-0
22 additions, 0 deletions
tox.ini
with
38 additions
and
13 deletions
.gitignore
+
1
−
0
View file @
dd768002
...
...
@@ -9,3 +9,4 @@ __pycache__
.vagrant/
*.log
*.retry
.tox
This diff is collapsed.
Click to expand it.
.travis.yml
+
11
−
13
View file @
dd768002
...
...
@@ -8,14 +8,15 @@ env:
global
:
-
VBOX_MEMORY=2048
matrix
:
-
platform
:
openbsd60
-
&openbsd59
platform=openbsd59
-
platform
:
xenial
-
platform
:
trusty
-
platform
:
precise
-
&stretch
platform=stretch
-
platform
:
jessie
-
platform
:
wheezy
-
TOXENV=pre-commit
-
TOXENV=openbsd60
-
&openbsd59
TOXENV=openbsd59
-
TOXENV=xenial
-
TOXENV=trusty
-
TOXENV=precise
-
&stretch
TOXENV=stretch
-
TOXENV=jessie
-
TOXENV=wheezy
matrix
:
fast_finish
:
True
allow_failures
:
...
...
@@ -32,13 +33,10 @@ install:
-
sudo apt-get install -y linux-headers-$(uname -r) virtualbox
-
wget https://releases.hashicorp.com/vagrant/1.9.1/vagrant_1.9.1_x86_64.deb
-
sudo dpkg -i vagrant_1.9.1_x86_64.deb
-
pip install -r tests/requirements.txt | cat
-
ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
-
molecule dependency
-
pip install tox | cat
script
:
-
pre-commit run --all-files
-
travis_wait 45 molecule test --platform $platform
-
travis_wait 45 tox
notifications
:
webhooks
:
https://galaxy.ansible.com/api/v1/notifications/
...
...
This diff is collapsed.
Click to expand it.
molecule.yml
+
4
−
0
View file @
dd768002
...
...
@@ -5,6 +5,10 @@ ansible:
diff
:
True
config_file
:
../ansible.cfg
molecule
:
ignore_paths
:
-
.tox
dependency
:
name
:
galaxy
requirements_file
:
tests/requirements.yml
...
...
This diff is collapsed.
Click to expand it.
tox.ini
0 → 100644
+
22
−
0
View file @
dd768002
[tox]
skip_install
=
True
skipsdist
=
True
envlist
=
openbsd60,openbsd59,xenial,trusty,precise,stretch,jessie,wheezy
[testenv:pre-commit]
deps
=
-rtests/requirements.txt
whitelist_externals
=
sh
commands
=
sh
-c
"ansible-galaxy
install
git+file://$(pwd),$(git
rev-parse
--abbrev-ref
HEAD)
-p
.molecule/roles"
molecule
dependency
pre-commit
run
--all-files
[testenv]
deps
=
-rtests/requirements.txt
passenv
=
HOME
whitelist_externals
=
sh
commands
=
sh
-c
"ansible-galaxy
install
git+file://$(pwd),$(git
rev-parse
--abbrev-ref
HEAD)
-p
.molecule/roles"
molecule
test
--platform
{envname}
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