add travis check

This commit is contained in:
Daniel Wallace 2018-08-14 09:38:53 -05:00
parent 550e6cfebd
commit 06ce92399d
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48
2 changed files with 39 additions and 13 deletions

View file

@ -1,17 +1,43 @@
language: ruby
services:
- docker
addons:
apt:
packages:
- curl
- git
- shellcheck
- python-pip
rvm:
- ruby
env:
matrix:
- SUITE=py2-git-2017.7
- SUITE=py2-git-2018.3
- SUITE=py2-git-fluorine
- SUITE=py2-git-develop
- SUITE=py2-stable-2017.7
- SUITE=py2-stable-2018.3
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 -c 10 "$SUITE"
- bundle exec kitchen converge "$SUITE"
- bundle exec kitchen verify "$SUITE"
notifications:
irc:
channels: "irc.freenode.org#salt-devel"
on_success: change
on_failure: change
after_script:
- bundle exec kitchen list $SUITE
- bundle exec kitchen destriy "$SUITE"

0
tests/requirements.txt Normal file
View file