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 1
/
Copy path.travis.yml
61 lines (58 loc) · 2.12 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
58
59
60
61
language: python
python:
- "2.7"
addons:
postgresql: "9.4"
services:
- memcached
before_install:
- pip install pep8
- pep8 --exclude=tests *.py cnxmltransforms/
- pep8 --max-line-length=200 cnxmltransforms/tests
- sudo apt-get update
# Remove python-zope.interface, not compatible with the pyramid version we're
# using
- sudo apt-get remove python-zope.interface
# Install the 'plpython' extension language
- sudo apt-get install postgresql-plpython-9.4
# Install the 'plxslt' extension language
- sudo apt-get install libxml2-dev libxslt-dev postgresql-server-dev-9.4
- git clone https://github.com/petere/plxslt.git
- cd plxslt && sudo make && sudo make install && cd ..
# Install cnx-query-grammar
- git clone https://github.com/Connexions/cnx-query-grammar.git
- cd cnx-query-grammar && python setup.py install && cd ..
# Install cnx-epub
- git clone https://github.com/Connexions/cnx-epub.git
- cd cnx-epub && python setup.py install && cd ..
# Install cnx-db
- git clone https://github.com/Connexions/cnx-db.git
- cd cnx-db && python setup.py install && cd ..
# Install rhaptos.cnxmlutils
- git clone https://github.com/Connexions/rhaptos.cnxmlutils.git
- cd rhaptos.cnxmlutils && python setup.py install && cd ..
# Install cnx-archive
- git clone https://github.com/Connexions/cnx-archive.git
- cd cnx-archive && python setup.py install && cd ..
# Scripts get installed to /usr/local/bin
- pip install coverage
- pip install coveralls
install:
- python setup.py install
before_script:
# Set up postgres roles
- 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
- git clone https://github.com/okbob/session_exec
- cd session_exec
- make USE_PGXS=1 -e && sudo make USE_PGXS=1 -e install
- cd ..
script:
# This is the same as `python -m unittest discover` with a coverage wrapper.
- coverage run --source=cnxmltransforms setup.py test
after_success:
# Report test coverage to coveralls.io
- coveralls
notifications:
email: false