forked from ceph/calamari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (31 loc) · 2.16 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
language: python
virtualenv:
system_site_packages: true
python:
- "2.7"
before_install:
- sudo apt-get update
- curl -L http://bootstrap.saltstack.org | sudo sh -s
install:
- sudo salt-call --retcode-passthrough --local state.template vagrant/devmode/salt/roots/build_deps.sls
- sudo salt-call --retcode-passthrough --local state.template vagrant/devmode/salt/roots/postgres.sls
- pip install pyzmq==14.1.1 --install-option="--zmq=bundled"
- pip install -r requirements/2.7/requirements.force.txt
- pip install -r requirements/2.7/requirements.txt
- pip install carbon --install-option="--prefix=$VIRTUAL_ENV" --install-option="--install-lib=$VIRTUAL_ENV/lib/python2.7/site-packages"
- pip install git+https://github.com/ceph/graphite-web.git@calamari --install-option="--prefix=$VIRTUAL_ENV" --install-option="--install-lib=$VIRTUAL_ENV/lib/python2.7/site-packages"
- for m in rest-api minion-sim cthulhu calamari-web calamari-common ; do cd $m ; python setup.py develop ; cd .. ; done
- cd dev ; python ./configure.py ; cd ..
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode initialize --admin-username admin --admin-password admin --admin-email [email protected]
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode add_user calamari --email [email protected]
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode assign_role calamari --role readonly
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode assign_role calamari --role "read/write"
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode assign_role calamari --role superuser
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode initialize
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode add_user calamari --email [email protected] || echo "It checks user already exists"
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode assign_role not_calamari --role readonly || echo "It checks that user exists"
- CALAMARI_CONFIG=dev/calamari.conf calamari-ctl --devmode assign_role calamari --role not_readonly || echo "It checks that role exists"
script:
- "make lint"
- "make unit-tests"
- "cd doc && make html"