forked from cloudify-cosmo/cloudify-manager-blueprints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 1.32 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
language: python
sudo: required
python:
- 2.7
install:
- pip install https://github.com/cloudify-cosmo/cloudify-rest-client/archive/master
- pip install https://github.com/cloudify-cosmo/cloudify-dsl-parser/archive/master
- pip install https://github.com/cloudify-cosmo/cloudify-plugins-common/archive/master
- pip install https://github.com/cloudify-cosmo/cloudify-script-plugin/archive/1.4.zip
- pip install https://github.com/cloudify-cosmo/cloudify-cli/archive/master
- pip install https://github.com/cloudify-cosmo/cloudify-openstack-plugin/archive/1.3.1.zip
- pip install coverage==3.7.1
- pip install nose
- pip install nose-cov
- pip install mock
- pip install flake8
- pip install testtools
env:
- OP="validate-blueprints"
- OP="flake8"
- OP="unit-tests"
script:
- |
set -e
if [ "${OP}" == "validate-blueprints" ]; then
cfy init
blueprints=`find . -name "*-manager-blueprint.yaml"`
for blueprint in $blueprints; do
cfy blueprints validate $blueprint
done
elif [ "${OP}" == "flake8" ]; then
flake8 .
elif [ "${OP}" == "unit-tests" ]; then
cd tests/unit-tests
nosetests --with-cov --cov-report term-missing --cov .
else
exit 1
fi;