This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.75 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
language: python
python:
- "2.7"
addons:
postgresql: "9.3"
before_install:
- sudo apt-get update
# Install the 'plpython' extension language
- sudo apt-get install postgresql-plpython-9.3
# Install the 'plxslt' extension language
- sudo apt-get install libxml2-dev libxslt-dev postgresql-server-dev-9.3
- git clone https://github.com/petere/plxslt.git
- cd plxslt && sudo make && sudo make install && cd ..
# install rhaptos.cnxmlutils
- git clone https://github.com/Connexions/rhaptos.cnxmlutils.git
- cd rhaptos.cnxmlutils && sudo /usr/bin/python setup.py install && cd ..
# install cnx-query-grammar
- git clone https://github.com/Connexions/cnx-query-grammar.git
- cd cnx-query-grammar && sudo /usr/bin/python setup.py install && cd ..
# install cnx-epub
- git clone https://github.com/Connexions/cnx-epub.git
- cd cnx-epub && sudo /usr/bin/python setup.py install && cd ..
# install the bug-fixes branch of plpydbapi
- git clone -b bug-fixes https://github.com/Connexions/plpydbapi.git
- cd plpydbapi && sudo /usr/bin/python setup.py install && cd ..
# install cnx-archive
- git clone https://github.com/Connexions/cnx-archive.git
- cd cnx-archive && sudo /usr/bin/python setup.py install && cd ..
install:
- sudo /usr/bin/python setup.py install
before_script:
# Set up postgres roles
- sudo -u postgres psql -d postgres -c "CREATE USER cnxuser;"
- sudo -u postgres psql -d postgres -c "CREATE USER cnxarchive WITH SUPERUSER PASSWORD 'cnxarchive';"
# Set up the database
- sudo -u postgres createdb -O cnxarchive cnxarchive-testing
script:
- sudo -E /usr/bin/python setup.py test
env:
- DB_CONNECTION_STRING="dbname=cnxarchive-testing user=cnxarchive password=cnxarchive host=localhost port=5432"
notifications:
email: false