forked from HewlettPackard/oneview-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (53 loc) · 1.81 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
53
###
# Copyright (2016-2017) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###
language: python
python:
- 2.7
- 3.5
env:
- ANSIBLE=2.1 PYPI_VERSION='2.1.5.0'
- ANSIBLE=2.2 PYPI_VERSION='2.2.2.0'
- ANSIBLE=2.3 PYPI_VERSION='2.3.0.0'
- ANSIBLE=src-2.3 BRANCH='stable-2.3' # source code is required to run the sanity test validate-modules
matrix:
exclude:
- python: 3.5
env: ANSIBLE=2.1 PYPI_VERSION='2.1.5.0'
- python: 3.5
env: ANSIBLE=2.2 PYPI_VERSION='2.2.2.0'
install:
- if [[ $PYPI_VERSION ]]; then pip install ansible==$PYPI_VERSION; fi
- pip install flake8
- pip install mock
- pip install git+https://github.com/HewlettPackard/python-hpOneView.git
- pip install coveralls
- pip install hpICsp
- |
if [[ $ANSIBLE == 2.1 || $ANSIBLE == 2.2 ]]; then
pip install git+https://github.com/sivel/ansible-testing.git#egg=ansible_testing;
fi
before_script:
- |
if [[ $BRANCH ]]; then
git clone -b $BRANCH --single-branch https://github.com/ansible/ansible.git;
source ./ansible/hacking/env-setup;
pip install pyyaml jinja2 nose pytest passlib pycrypto six voluptuous;
fi
script:
- export ANSIBLE_LIBRARY=$PWD/library
- export PYTHONPATH=$ANSIBLE_LIBRARY:$PYTHONPATH
- touch examples/vars/config.yml
- ./build.sh