forked from gisce/mongodb_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1.42 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
sudo: false
language: python
python:
- "2.7"
env:
- SERVER_DIR=/tmp/server
OPENERP_DB_HOST=localhost
OPENERP_DB_USER=postgres
OPENERP_ROOT_PATH=${SERVER_DIR}/bin
OPENERP_ADDONS_PATH=${OPENERP_ROOT_PATH}/addons
PYTHONPATH=${OPENERP_ROOT_PATH}:${OPENERP_ADDONS_PATH}
DESTRAL_USE_TEMPLATE=False
MONGODB=3.0.15
services:
- postgresql
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- easy_install egenix-mx-base
- pip install lxml "psycopg2<2.8" babel vatnumber "reportlab==3.0"
- pip install https://github.com/gisce/destral/archive/master.zip
- pip install "pymongo<3.0"
- mkdir -p ${SERVER_DIR}
- pushd ${SERVER_DIR}
- curl -L https://github.com/odoo/odoo/archive/5.0.tar.gz | tar xvzf - --strip-components 1
- pushd ${OPENERP_ADDONS_PATH}
- for m in `find ../../addons -name '__terp__.py' -exec dirname {} \;`; do ln -s $m .; done
- ln -s ${TRAVIS_BUILD_DIR} .
- popd
- popd
before_script:
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
script:
- destral -m mongodb_backend
after_script:
- pkill mongod
notifications:
irc: "irc.freenode.org#gisce-commits"