[ci] Reorganize Travis-CI test suite

This change should allow for faster Travis-CI tests done in parallel.
parent a323b91d
......@@ -5,9 +5,45 @@ language: 'python'
matrix:
include:
- python: '2.7'
env: 'MODE=docs'
- python: '2.7'
env: 'MODE=syntax'
- python: '2.7'
env: 'MODE=docker'
- python: '2.7'
env: 'MODE=build-sdist'
- python: '3.6'
env: 'MODE=ansible'
- python: '3.5'
env: 'MODE=ansible'
- python: '2.7'
env: 'MODE=ansible'
- python: '3.6'
env: 'MODE=build-wheel'
- python: '3.5'
env: 'MODE=build-wheel'
- python: '2.7'
env: 'MODE=build-wheel'
- python: '3.6'
env: 'MODE=test'
- python: '3.5'
env: 'MODE=test'
- python: '2.7'
env: 'MODE=test'
virtualenv:
system_site_packages: false
......@@ -20,17 +56,10 @@ cache:
- '$HOME/.cache/pip'
before_install:
- 'sudo apt-get -qq update'
- 'sudo apt-get install -yq graphviz'
- 'pip install --upgrade pip six setuptools wheel'
- 'pip install pycodestyle unittest2 nose2 cov-core ansible sphinx sphinx-autobuild sphinx_rtd_theme yamllint'
- "${TRAVIS_BUILD_DIR}/lib/travis/${MODE}/before_install.sh"
install:
- 'pip list'
- 'ansible --version'
- "${TRAVIS_BUILD_DIR}/lib/travis/${MODE}/install.sh"
script:
- 'make test-all'
- 'make check'
- 'make sdist-quiet wheel-quiet'
- 'pip install .'
- "${TRAVIS_BUILD_DIR}/lib/travis/${MODE}/script.sh"
#!/bin/sh
sudo apt-get -qq update
pip install --upgrade pip wheel setuptools
pip install ansible
#!/bin/sh
pip list
ansible --version
#!/bin/sh
make clean-tests
make test-playbook-syntax
make check
#!/bin/sh
# Prepare environment for building the Python packages
sudo apt-get -qq update
pip install --upgrade pip wheel setuptools
#!/bin/sh
# Nothing to do
true
#!/bin/sh
make clean-tests
make check
make sdist-quiet
pip install dist/*
#!/bin/sh
# Prepare environment for building the Python packages
sudo apt-get -qq update
pip install --upgrade pip wheel setuptools
#!/bin/sh
# Nothing to do
true
#!/bin/sh
make clean-tests
make check
make wheel-quiet
pip install dist/*
#!/bin/sh
# Nothing to do
true
#!/bin/sh
# Nothing to do
true
#!/bin/sh
make clean-tests
make test-docker-build
make check
#!/bin/sh
sudo apt-get -qq update
sudo apt-get -yq install graphviz
pip install --upgrade pip wheel setuptools
pip install \
sphinx \
sphinx-autobuild \
sphinx_rtd_theme
#!/bin/sh
# Nothing to do
true
#!/bin/sh
make clean-tests
make test-docs
make check
#!/bin/sh
sudo apt-get -qq update
pip install --upgrade pip wheel setuptools
pip install \
pycodestyle \
yamllint
#!/bin/sh
# Nothing to do
true
#!/bin/sh
make clean-tests
make test-pep8 test-yaml test-shell
make check
#!/bin/sh
sudo apt-get -qq update
pip install --upgrade pip wheel setuptools
pip install \
unittest2 \
nose2 \
cov-core
#!/bin/sh
# Nothing to do
true
#!/bin/sh
make clean-tests
make test-debops-tools
make check
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment