forked from mushorg/glastopf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 1.28 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
language: python
services:
- mongodb
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- REPO=`pwd`
- echo $REPO
- pwd
- "sudo apt-get -qq update"
- "sudo apt-get -qq install python-dev gfortran"
- "sudo apt-get install -y -q libxml2"
- "sudo service mongodb start"
# Dependencies for the php sandbox
- "sudo apt-get -qq install php5 php5-dev"
# Install hpfeeds
- cd /tmp
- git clone git://github.com/rep/hpfeeds.git hpfeeds
- cd hpfeeds
- python setup.py install
# Install Better Function Replacer (BFR)
- cd /tmp
- git clone git://github.com/glastopf/BFR.git
- cd BFR
- phpize
- ./configure --enable-bfr
- make
- sudo make install
# TODO: Extract path from output
- sudo bash -c 'echo "zend_extension = /usr/lib/php5/20090626/bfr.so" >> /etc/php5/cli/php.ini'
- php5 --version
- cd $REPO
- cd glastopf
- cd sandbox
- sudo make
- pwd
# install pylibinjection
- cd /tmp
- pip install cython
- git clone --recursive https://github.com/glastopf/pylibinjection.git
- cd pylibinjection
- python setup.py install
install:
- export PYTHONIOENCODING=UTF8 # just in case
- pwd
- cd $REPO
- pip install -r requirements.txt --use-mirrors
# command to run tests
script:
- echo $REPO
- pwd
- nosetests
notifications:
irc:
- "irc.freenode.org#glastopf"