forked from pfsensible/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 836 Bytes
/
.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
# Needed for python 3.7+
dist: bionic
language: python
cache: pip
python:
- '3.6'
- '3.7'
- '3.8'
before_install:
- pip install -U setuptools
- pip install -U pip
- pip install -U pytest
install:
- pip install 'urllib3<1.27,>=1.25.4'
- pip install ansible-base dnspython jinja2 MarkupSafe parameterized pyparsing pycodestyle pytest-xdist pyyaml 'six>=1.12'
- ansible-galaxy collection install ansible.netcommon
- ansible-galaxy collection install community.internal_test_tools
script:
- pwd
- dir=$(pwd)
- mkdir -p ~/.ansible/collections/ansible_collections/pfsensible
- cd ~/.ansible/collections/ansible_collections/pfsensible
- mv $dir core
- cd core
- ansible-test sanity --requirements --python $TRAVIS_PYTHON_VERSION
- ansible-test units --requirements --python $TRAVIS_PYTHON_VERSION