mirror of
https://github.com/openkmip/pykmip
synced 2025-12-16 00:04:26 +00:00
This change updates the Travis CI configuration to support running the PyKMIP integation test suite. A custom run.sh script is added which conditionally runs tox based on an environment flag set in .travis.yml. If integration tests are activated, the test VM will be prepped for running the PyKMIP server; this includes creating /etc/pykmip content, like pykmip.conf and server.conf, along with a basic certificate to use for both the client and server.
102 lines
2.7 KiB
YAML
102 lines
2.7 KiB
YAML
sudo: true
|
|
language: python
|
|
matrix:
|
|
include:
|
|
- python: 2.7
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py27 RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py27 RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py27 RUN_INTEGRATION_TESTS=1
|
|
- python: 2.7
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py27 RUN_INTEGRATION_TESTS=1
|
|
- python: 3.4
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py34 RUN_INTEGRATION_TESTS=0
|
|
- python: 3.4
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py34 RUN_INTEGRATION_TESTS=0
|
|
- python: 3.4
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py34 RUN_INTEGRATION_TESTS=1
|
|
- python: 3.4
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py34 RUN_INTEGRATION_TESTS=1
|
|
- python: 3.5
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py35 RUN_INTEGRATION_TESTS=0
|
|
- python: 3.5
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py35 RUN_INTEGRATION_TESTS=0
|
|
- python: 3.5
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py35 RUN_INTEGRATION_TESTS=1
|
|
- python: 3.5
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py35 RUN_INTEGRATION_TESTS=1
|
|
- python: 3.6
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py36 RUN_INTEGRATION_TESTS=0
|
|
- python: 3.6
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py36 RUN_INTEGRATION_TESTS=0
|
|
- python: 3.6
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=py36 RUN_INTEGRATION_TESTS=1
|
|
- python: 3.6
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=py36 RUN_INTEGRATION_TESTS=1
|
|
- python: 2.7
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=pep8 RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=pep8 RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=bandit RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=bandit RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: precise
|
|
env: TOXENV=docs RUN_INTEGRATION_TESTS=0
|
|
- python: 2.7
|
|
os: linux
|
|
dist: trusty
|
|
env: TOXENV=docs RUN_INTEGRATION_TESTS=0
|
|
install:
|
|
- pip install tox
|
|
- pip install bandit
|
|
- pip install codecov
|
|
- python setup.py install
|
|
script:
|
|
- ./.travis/run.sh
|
|
after_success:
|
|
- codecov
|