From 06ce92399d56431f2a56467d8865986fa5191518 Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Tue, 14 Aug 2018 09:38:53 -0500 Subject: [PATCH] add travis check --- .travis.yml | 52 +++++++++++++++++++++++++++++++----------- tests/requirements.txt | 0 2 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 tests/requirements.txt diff --git a/.travis.yml b/.travis.yml index d6247c1..29ce78e 100644 --- a/.travis.yml +++ b/.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" diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 0000000..e69de29