forked from ClusterLabs/fence-agents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.1 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
language: python
sudo: required
dist: trusty
python:
- "2.7"
addons:
apt:
packages:
- python-pexpect
- xsltproc
- time
- libpam0g-dev
- libxml2-utils
- libcimcclient0-dev
- swig
before_install:
- pip install suds
- pip install pycurl
- pip install requests
- pip install pexpect
before_script:
- wget https://github.com/Openwsman/openwsman/archive/v2.6.2.tar.gz -O /tmp/openwsman-2.6.2.tar.gz
- tar zxvf /tmp/openwsman-2.6.2.tar.gz
- cd openwsman-2.6.2
- perl -p -i -e "s/(\\$\{CURL_LIBRARIES\})/\1 ssl crypto/g" src/lib/CMakeLists.txt
- mkdir build && cd build
- cmake .. -DPYTHON_EXECUTABLE:FILEPATH=~/virtualenv/python2.7/bin/python -DLIB=/lib/x86_64-linux-gnu -DCMAKE_LIBRARY_ARCHITECTURE=x86_64-linux-gnu -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=TRUE
- make
- sudo make install
- cd ../..
- sudo rm -rf ~/virtualenv/python2.7/lib/python2.7/site-packages/{_,}pywsman*
- pip install pywsman
script:
- ./autogen.sh
- ./configure
- make -j4
- make -j4 check
- PYTHONPATH=fence/agents/lib python fence/agents/lib/tests/test_fencing.py