mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
add travis check
This commit is contained in:
parent
550e6cfebd
commit
06ce92399d
2 changed files with 39 additions and 13 deletions
52
.travis.yml
52
.travis.yml
|
@ -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
0
tests/requirements.txt
Normal file
Loading…
Add table
Reference in a new issue