forked from cloudify-cosmo/cloudify-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (62 loc) · 2.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: java
jdk:
- openjdk7
services:
- rabbitmq
before_script:
- wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
- sudo dpkg -i elasticsearch-1.0.1.deb
- export PATH=$PATH:/usr/share/elasticsearch/bin
- sudo mkdir -p /usr/share/elasticsearch/data
- sudo chmod 777 /usr/share/elasticsearch/data
- wget http://aphyr.com/riemann/riemann_0.2.2_all.deb
- sudo dpkg -i riemann_0.2.2_all.deb
- sudo touch /var/log/riemann/riemann.log
- sudo chmod 666 /var/log/riemann/riemann.log
- sudo test -d /dev/shm && sudo rm -rf /dev/shm
- sudo ln -Tsf /{run,dev}/shm
- sudo chmod 777 /dev/shm # for celery worker
- echo "### Starting HTTP server for serving agent package (for agent installer tests)"
- python -m SimpleHTTPServer 8000 &
install:
- rvm install ruby-2.1.0
- rvm use ruby-2.1.0
- rvm --default use ruby-2.1.0
- gem install bundler
- cd workflow-service; bundle install; cd ..
- sudo pip install virtualenv
- sudo pip install flake8
- echo "### Creating agent package..."
- mkdir -p package/linux
- virtualenv package/linux/env
- source package/linux/env/bin/activate
- cd plugins/agent-installer && pip install --process-dependency-links . && cd ../..
- cd plugins/plugin-installer && pip install --process-dependency-links . && cd ../..
- cd plugins/agent-installer/worker_installer/tests/mock-sudo-plugin && pip install --process-dependency-links . && cd ../../../../..
- tar czf agent.tar.gz package
- rm -r package
- virtualenv ~/env
- source ~/env/bin/activate
- pip install nose
- cd plugins/agent-installer && pip install --process-dependency-links . && cd ../..
- cd plugins/plugin-installer && pip install --process-dependency-links . && cd ../..
- cd rest-service && pip install --process-dependency-links . && cd ..
- cd tests && pip install --process-dependency-links . && cd ..
script:
- flake8 plugins/agent-installer/
- flake8 plugins/plugin-installer/
- flake8 rest-service/
- flake8 tests/
- cd workflow-service
- rake
- cd ..
- nosetests rest-service/manager_rest/test --nologcapture --nocapture
- nosetests tests/workflow_tests --nologcapture --nocapture -v
- nosetests plugins/plugin-installer/plugin_installer/tests --nologcapture --nocapture
- echo "Defaults:travis requiretty" | sudo tee -a /etc/sudoers
- cd plugins/agent-installer
- nosetests worker_installer.tests.test_configuration:CeleryWorkerConfigurationTest --nologcapture --nocapture
- nosetests worker_installer.tests.test_worker_installer:TestLocalInstallerCase --nologcapture --nocapture
- cd ..
notifications:
hipchat: 60884046bb8dec459418f468ba68b9@cosmo