2017-10-02 09:08:39 +00:00
|
|
|
sudo: required
|
2018-05-11 17:15:43 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
2017-10-02 09:08:39 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
language: python
|
2018-04-17 16:35:19 +00:00
|
|
|
|
2018-06-24 16:23:10 +00:00
|
|
|
cache:
|
|
|
|
- pip
|
|
|
|
- directories:
|
|
|
|
- /home/travis/virtualenv
|
2017-10-02 09:08:39 +00:00
|
|
|
|
2018-04-17 16:35:19 +00:00
|
|
|
install:
|
2018-10-26 10:36:49 +00:00
|
|
|
# |cat to disable progress bar.
|
|
|
|
- pip install -r dev_requirements.txt |cat
|
2018-04-17 16:35:19 +00:00
|
|
|
|
|
|
|
script:
|
2018-08-12 13:01:04 +00:00
|
|
|
- |
|
|
|
|
if [ -f "${TRAVIS_BUILD_DIR}/.travis/${MODE}_tests.sh" ]; then
|
|
|
|
${TRAVIS_BUILD_DIR}/.travis/${MODE}_tests.sh;
|
|
|
|
else
|
|
|
|
${TRAVIS_BUILD_DIR}/.travis/${MODE}_tests.py;
|
|
|
|
fi
|
|
|
|
|
2018-04-17 16:35:19 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2018-08-12 13:01:04 +00:00
|
|
|
|
|
|
|
# To avoid matrix explosion, just test against oldest->newest and
|
|
|
|
# newest->oldest in various configuartions.
|
|
|
|
|
2018-06-23 23:33:46 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Mitogen tests.
|
|
|
|
# 2.7 -> 2.7
|
|
|
|
- python: "2.7"
|
|
|
|
env: MODE=mitogen DISTRO=debian
|
|
|
|
# 2.7 -> 2.6
|
2018-07-05 00:10:00 +00:00
|
|
|
- python: "2.7"
|
|
|
|
env: MODE=mitogen DISTRO=centos6
|
2018-06-23 23:33:46 +00:00
|
|
|
# 2.6 -> 2.7
|
2018-07-05 00:10:00 +00:00
|
|
|
- python: "2.6"
|
|
|
|
env: MODE=mitogen DISTRO=centos7
|
2018-08-12 13:01:04 +00:00
|
|
|
# 3.6 -> 2.6
|
2018-04-17 16:35:19 +00:00
|
|
|
- python: "3.6"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=mitogen DISTRO=centos6
|
2018-06-23 23:33:46 +00:00
|
|
|
|
|
|
|
# Debops tests.
|
2018-08-12 13:01:04 +00:00
|
|
|
# 2.4.6.0; 2.7 -> 2.7
|
2018-07-05 00:10:00 +00:00
|
|
|
- python: "2.7"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=debops_common VER=2.4.6.0
|
|
|
|
# 2.5.7; 3.6 -> 2.7
|
2018-07-05 00:10:00 +00:00
|
|
|
- python: "3.6"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=debops_common VER=2.6.2
|
2018-06-23 23:33:46 +00:00
|
|
|
|
|
|
|
# ansible_mitogen tests.
|
2018-07-21 15:16:54 +00:00
|
|
|
|
2018-08-12 13:01:04 +00:00
|
|
|
# 2.6 -> {debian, centos6, centos7}
|
2018-07-05 00:10:00 +00:00
|
|
|
- python: "2.6"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=ansible VER=2.4.6.0
|
2018-07-05 00:10:00 +00:00
|
|
|
- python: "2.6"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=ansible VER=2.6.2
|
2018-07-21 15:16:54 +00:00
|
|
|
|
2018-08-12 13:01:04 +00:00
|
|
|
# 3.6 -> {debian, centos6, centos7}
|
2018-04-17 16:35:19 +00:00
|
|
|
- python: "3.6"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=ansible VER=2.4.6.0
|
2018-07-21 15:16:54 +00:00
|
|
|
- python: "3.6"
|
2018-08-12 13:01:04 +00:00
|
|
|
env: MODE=ansible VER=2.6.2
|
2018-06-23 23:33:46 +00:00
|
|
|
|
2018-08-12 13:01:04 +00:00
|
|
|
# Sanity check against vanilla Ansible. One job suffices.
|
2018-07-21 15:16:54 +00:00
|
|
|
- python: "2.7"
|
2018-08-19 22:04:40 +00:00
|
|
|
env: MODE=ansible VER=2.6.2 DISTROS=debian STRATEGY=linear
|