-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1281 from Ch3LL/merge_stable
[stable] Merge develop into stable for new release 2018.08.15
- Loading branch information
Showing
23 changed files
with
225 additions
and
2,164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ | |
|
||
# Pycharm | ||
.idea | ||
|
||
# test-kitchen | ||
.bundle | ||
Gemfile.lock |
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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
driver: | ||
name: docker | ||
use_sudo: false | ||
hostname: salt | ||
privileged: true | ||
username: kitchen | ||
cap_add: | ||
- sys_admin | ||
disable_upstart: false | ||
|
||
provisioner: | ||
name: salt_solo | ||
salt_install: bootstrap | ||
salt_bootstrap_url: bootstrap-salt.sh | ||
salt_bootstrap_options: -MPfq git %s | ||
install_after_init_environment: true | ||
log_level: info | ||
sudo: true | ||
require_chef: false | ||
formula: tests | ||
state_top: | ||
base: | ||
'*': | ||
- tests.accept_key | ||
|
||
platforms: | ||
- name: fedora | ||
driver_config: | ||
image: fedora:latest | ||
run_command: /usr/lib/systemd/systemd | ||
- name: centos-7 | ||
driver_config: | ||
run_command: /usr/lib/systemd/systemd | ||
- name: centos-6 | ||
driver_config: | ||
run_command: /sbin/init | ||
provision_command: | ||
- yum install -y upstart | ||
provisioner: | ||
salt_bootstrap_options: -MPfq -y -x python2.7 git %s | ||
- name: amazon-1 | ||
driver_config: | ||
image: amazonlinux:1 | ||
platform: rhel | ||
run_command: /sbin/init | ||
provision_command: | ||
- yum install -y upstart | ||
- name: ubuntu-18.04 | ||
driver_config: | ||
run_command: /lib/systemd/systemd | ||
- name: ubuntu-16.04 | ||
driver_config: | ||
run_command: /lib/systemd/systemd | ||
- name: ubuntu-14.04 | ||
driver_config: | ||
run_command: /sbin/init | ||
provision_command: | ||
- rm -f /sbin/initctl | ||
- dpkg-divert --local --rename --remove /sbin/initctl | ||
- name: debian-8 | ||
driver_config: | ||
run_command: /lib/systemd/systemd | ||
provision_command: | ||
- apt-get install -y dbus | ||
- name: debian-9 | ||
driver_config: | ||
run_command: /lib/systemd/systemd | ||
- name: arch | ||
driver_config: | ||
image: base/archlinux | ||
run_command: /usr/lib/systemd/systemd | ||
provision_command: | ||
- pacman -Syu --noconfirm systemd | ||
- systemctl enable sshd | ||
- name: opensuse | ||
driver_config: | ||
run_command: /usr/lib/systemd/systemd | ||
provision_command: | ||
- systemctl enable sshd.service | ||
|
||
suites: | ||
- name: py2-git-2017.7 | ||
provisioner: | ||
salt_version: 2017.7 | ||
- name: py2-git-2018.3 | ||
provisioner: | ||
salt_version: 2018.3 | ||
- name: py2-git-fluorine | ||
provisioner: | ||
salt_version: fluorine | ||
- name: py2-git-develop | ||
provisioner: | ||
salt_version: develop | ||
- name: py2-stable-2017.7 | ||
provisioner: | ||
salt_version: 2017.7 | ||
salt_bootstrap_options: -MP stable %s | ||
excludes: | ||
- arch | ||
- centos-6 | ||
- fedora | ||
- opensuse | ||
- name: py2-stable-2018.3 | ||
provisioner: | ||
salt_version: 2018.3 | ||
salt_bootstrap_options: -MP stable | ||
excludes: | ||
- centos-6 | ||
|
||
verifier: | ||
name: shell | ||
remote_exec: false | ||
command: pytest -v tests/integration/ |
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,17 +1,54 @@ | ||
language: ruby | ||
|
||
services: | ||
- docker | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- curl | ||
- git | ||
- shellcheck | ||
- python-pip | ||
|
||
rvm: | ||
- ruby | ||
|
||
env: | ||
matrix: | ||
- PLATFORM=fedora | ||
- PLATFORM=centos-7 | ||
- PLATFORM=centos-6 | ||
- PLATFORM=amazon-1 | ||
- PLATFORM=ubuntu-1804 | ||
- PLATFORM=ubuntu-1604 | ||
- PLATFORM=ubuntu-1404 | ||
- PLATFORM=debian-8 | ||
- PLATFORM=debian-9 | ||
- PLATFORM=arch | ||
- PLATFORM=opensuse | ||
|
||
matrix: | ||
allow_failures: | ||
- env: PLATFORM=ubuntu-1804 | ||
- env: PLATFORM=ubuntu-1604 | ||
- env: PLATFORM=debian-8 | ||
- env: PLATFORM=debian-9 | ||
- env: PLATFORM=centos-6 | ||
|
||
sudo: true | ||
dist: trusty | ||
|
||
before_install: | ||
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then sudo pip install unittest2; fi" | ||
- sudo pip install --use-mirrors --mirrors=http://g.pypi.python.org/ --mirrors=http://c.pypi.python.org/ --mirrors=http://pypi.crate.io/ unittest-xml-reporting | ||
- sudo apt-get remove -y -o DPkg::Options::=--force-confold --purge libzmq3 | ||
- sudo apt-get autoremove -y -o DPkg::Options::=--force-confold --purge | ||
- sudo ls -lah /etc/apt/sources.list.d/ | ||
- sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list | ||
- sudo pip install git+https://github.com/saltstack/salt-testing.git#egg=SaltTesting | ||
- pip install --user -r tests/requirements.txt | ||
|
||
script: | ||
- BS_ECHO_DEBUG=1 sudo -E python tests/runtests.py -vv | ||
# Check shell scripts | ||
- shellcheck -s sh -f checkstyle bootstrap-salt.sh | ||
# Run test-kitchen with docker driver: | ||
- bundle exec kitchen create -l warn -c 6 "$PLATFORM" | ||
- bundle exec kitchen verify "$PLATFORM" | ||
|
||
notifications: | ||
irc: | ||
channels: "irc.freenode.org#salt-devel" | ||
on_success: change | ||
on_failure: change | ||
after_script: | ||
- bundle exec kitchen list $PLATFORM | ||
- bundle exec kitchen destroy "$PLATFORM" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem 'kitchen-salt', '~>0.2' | ||
gem 'kitchen-docker', :git => 'https://github.com/test-kitchen/kitchen-docker.git' |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accept_minion_key: | ||
salt.wheel: | ||
- name: key.accept | ||
- match: salt |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.