This repository has been archived by the owner on Dec 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rake task for integration testing
Signed-off-by: Patrick Münch <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
--- | ||
notifications: | ||
webhooks: https://galaxy.ansible.com/api/v1/notifications/ | ||
language: python | ||
python: "2.7" | ||
sudo: required | ||
language: ruby | ||
cache: bundler | ||
dist: trusty | ||
|
||
env: | ||
- ANSIBLE_VERSION=latest | ||
- ANSIBLE_VERSION=1.9.4 | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq python-apt python-pycurl | ||
install: | ||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi | ||
- echo -e 'localhost ansible_connection=local' > spec/inventory | ||
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./spec/inventory' > ansible.cfg | ||
- gem --version | ||
- bundle version | ||
|
||
script: | ||
- ansible-playbook --syntax-check spec/travis.yml | ||
- ansible-playbook --sudo -v --diff spec/travis.yml | ||
- ansible-playbook --sudo -v --diff spec/travis.yml --extra-vars "network_ipv6_enable=true ssh_allow_root_with_key=true ssh_client_password_login=true ssh_client_cbc_required=true ssh_server_weak_hmac=true ssh_client_weak_kex=true sftp_enabled=true" | ||
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888 | ||
before_script: sudo iptables -L DOCKER || sudo iptables -N DOCKER | ||
|
||
|
||
script: travis_retry bundle exec kitchen test | ||
|
||
#matrix: | ||
# include: | ||
# # verify lint and unit | ||
# # - rvm: 2.3.1 | ||
# # gemfile: Gemfile | ||
# # bundler_args: "--without integration guard tools" | ||
# # integration tests | ||
# - rvm: 2.3.1 | ||
# bundler_args: "--without guard tools" | ||
# script: bundle exec rake integration OS='centos oracle' | ||
# gemfile: Gemfile | ||
# - rvm: 2.3.1 | ||
# bundler_args: "--without guard tools" | ||
# script: bundle exec rake integration OS='ubuntu debian' | ||
#gemfile: Gemfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters