-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
27 lines (24 loc) · 1.05 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
language: python
python:
- "2.7"
# The version of SWIG packaged with the TravisCI VM's (2.0.4) doesn't work for us
# - sudo apt-get install -qq swig
before_install:
- sudo add-apt-repository -y ppa:webupd8team/java # for the oracle jdk
- sudo apt-get update -qq
- sudo apt-get install -y libpcre3-dev oracle-java8-installer ant junit4
- wget http://prdownloads.sourceforge.net/swig/swig-3.0.2.tar.gz -O - | tar xzf -
- (cd swig-3.0.2/ && ./configure -prefix=$HOME --without-alllang --with-python && make -j 2 && make install) >/dev/null
- export PATH=$HOME/bin:$PATH
- swig -version
- ulimit -a
- export INSTALLDIR="${HOME}/stuff"
- export LocalPyInstallPath="${INSTALLDIR}/lib/python2.7/site-packages/"
- export PYTHONPATH="${LocalPyInstallPath}:$PYTHONPATH"
install:
- make clean all
- mkdir -p "${LocalPyInstallPath}"
- (cd bindings/pyrapi && python setup.py install --prefix "${INSTALLDIR}" --skip-build)
script:
- python bindings/pyrapi/tests/test_pyrapi.py
- (cd bindings/jrapi && ant run-tests)