@@ -8,9 +8,9 @@ dist: bionic
8
8
9
9
env :
10
10
global :
11
- - COLLECTION_NAMESPACE : netbox
12
- - COLLECTION_NAME : netbox
13
- - COLLECTION_VERSION : 1.0.0
11
+ - COLLECTION_NAMESPACE : " netbox"
12
+ - COLLECTION_NAME : " netbox"
13
+ - COLLECTION_VERSION : " 1.0.0"
14
14
- secure : " tE6GtwrRU+Kjobx/94xqR2MqM20pHCnrLcHgPzIHA3npdwuA+GjCBiBLTkEEQM4fUWIfzUTyjSr9bZErm1PTI1GcIRdniTgJ3ZzSSkE7tgeYALB/7xsusB57SlmbBQm2SGwU558uWZ3NHEsi0WTgD8GKZo77OpGX72FZKsVXOz6k2wve51sOtoSVjgCsvWTmZHx4ynGdiA5wFkZfaEcjXECahKtunW+MlB5kpJzkVeLRUEXFMhWlsIYiA5nj8OI/X3Nk9ugh1ribENX9LrjpgrqQ9YariZ8G6py1ONuKZIn2g7xs5kNQ3qL6HL6N7SoUxiwH16CfSyugFaYiMfaxQ4NUVGGRHS4vSGbNIf+gLHcYvP40miI1f/+pntCzqygZMhW73FX2o+KH2OGv09khOl8k1nDg2/XvW0kCc/FU6l+Jp5wCC8H9X2uiULtQpRqts5TzIonlPEzGIpfGFgJ5m54Emhv9gjG1Z5OOyL/qae1Wr+L/uhiFafcglZYh8NHEMWCUCkeqFqR2kDmUMtdgYLD7Q7NdwlL/PSVVs1l7UPiQHlnecQKEHN7CvR3eKByTEmkCKafRYh/JQ9rBt9sZc7aAPVu+w3wWUwbHS4o4vVnmyXvJb1PeJSiuynF7CBo4Qd6qj4YwX8gLK6PylGyaMOp169u6xw1mo5/CX0pJ3x4="
15
15
16
16
jobs :
28
28
- docker-compose pull
29
29
- docker-compose up -d
30
30
- cd ..
31
+ - pip install -U pip
32
+ - pip install -U pytest
31
33
- pip install -U pip "setuptools>=46.1.3"
32
- - pip install pytest==4.6.5 pytest -mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
34
+ - pip install pytest-mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
33
35
- pip install pynetbox cryptography codecov jmespath jsondiff ansible
34
36
35
37
# Stick to python 3.7 instead of 3.8, as ansible-test sanity is not compatible with 3.7
47
49
- docker-compose pull
48
50
- docker-compose up -d
49
51
- cd ..
52
+ - pip install -U pip
53
+ - pip install -U pytest
50
54
- pip install -U pip "setuptools>=46.1.3"
51
- - pip install pytest==4.6.5 pytest -mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
55
+ - pip install pytest-mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
52
56
- pip install pynetbox cryptography codecov jmespath jsondiff ansible
53
57
54
58
# Latest development versions of Netbox and Ansible, newest Python
@@ -65,13 +69,37 @@ jobs:
65
69
- docker-compose pull
66
70
- docker-compose up -d
67
71
- cd ..
72
+ - pip install -U pip
73
+ - pip install -U pytest
68
74
- pip install -U pip "setuptools>=46.1.3"
69
- - pip install pytest==4.6.5 pytest -mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
75
+ - pip install pytest-mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
70
76
- pip install pynetbox cryptography jmespath jsondiff
71
77
- git clone https://github.com/ansible/ansible.git
72
78
- cd ansible
73
79
- source hacking/env-setup
74
80
- cd ..
81
+
82
+ # Commenting out, but keeping for next PR to work on sanity issues
83
+ # - name: "Ansible 2.10 Preparation"
84
+ # python: 3.8
85
+ # env: INTEGRATION_TESTS=latest
86
+ # install:
87
+ # - pip install -U pip "setuptools>=46.1.3"
88
+ # - pip install pytest==4.6.5 pytest-mock pytest-xdist jinja2 PyYAML black==19.10b0 "coverage<5"
89
+ # - pip install pynetbox cryptography jmespath jsondiff ansible-base
90
+ # before_script:
91
+ # - ls
92
+ # - cd ..
93
+ # - mkdir -p ~/ansible_collections/$COLLECTION_NAMESPACE
94
+ # - cp -R ansible_modules ~/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
95
+ # - cd ~/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
96
+ # - ansible-galaxy collection build .
97
+ # - ansible-galaxy collection install $COLLECTION_NAMESPACE-$COLLECTION_NAME-$COLLECTION_VERSION.tar.gz -p /home/travis/.ansible/collections
98
+ # Run all further tests from within the installed directory
99
+ # Required to resolve imports of other collections
100
+ # - cd /home/travis/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
101
+ # script:
102
+ # - ansible-test sanity --docker -v --exclude tests/ --exclude docs/ --skip-test pep8
75
103
allow_failures :
76
104
# When testing against dev netbox and dev ansible, allow failures
77
105
- env : PYTHON_VER=3.8 VERSION=snapshot INTEGRATION_TESTS=latest
0 commit comments