-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
language: python
dist: bionic
services: docker
python:
# - "3.5"
# - "3.6"
# - "3.7"
- "3.8"
env:
global:
- ROLE_NAME: "bootstrap"
- NAMESPACE: "tehtbl"
matrix:
- IMAGE="debian" TAG="stable"
- IMAGE="debian" TAG="testing"
- IMAGE="debian" TAG="unstable"
- IMAGE="ubuntu" TAG="xenial"
- IMAGE="ubuntu" TAG="bionic"
- IMAGE="ubuntu" TAG="focal"
- IMAGE="ubuntu" TAG="devel"
matrix:
allow_failures:
- env: IMAGE="debian" TAG="unstable"
- env: IMAGE="ubuntu" TAG="xenial"
- env: IMAGE="ubuntu" TAG="devel"
install:
- pip install --upgrade pip
- pip install tox
script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-${ROLE_NAME} ${ROLE_NAME}
- cd ${ROLE_NAME}
# get current Python version for Tox testing
- export PY_VERSION="py${TRAVIS_PYTHON_VERSION//.}"
- echo "${PY_VERSION}"
# Run Molcule tests with help of Tox
- tox -e "${PY_VERSION}-ansible-{previous,current}" --parallel all
# Let ansible-next tests fail, due to https://github.com/ansible-community/molecule/issues/2650
- tox -e "${PY_VERSION}-ansible-next" || echo "tests for ${PY_VERSION}-ansible-next failed, but is ignored"
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email: true