-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
42 lines (42 loc) · 1.54 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
sudo: false
python:
- "2.7"
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
env:
- NEO4J_VERSION="1.9.9" FIREFOX_VERSION="31.0esr" FIREFOX_PATH="firefox/firefox-bin"
before_install:
- ./scripts/download_and_install_neo4j.sh $NEO4J_VERSION
- ./scripts/download_and_install_firefox.sh $FIREFOX_VERSION
install:
- pip install -r requirements/test.txt
- pip install --allow-all-external argparse==1.2.1
- gem install coveralls-lcov
before_script:
# Neo4j issue with 'start' https://github.com/neo4j/neo4j/issues/3414
- ./neo4j/bin/neo4j start-no-wait
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- npm install node-gyp
- npm install socket.io
- npm install karma
- npm install karma-jasmine
- npm install jasmine-core
- npm install karma-firefox-launcher
- npm install karma-phantomjs-launcher
- npm install karma-coverage
script:
- python sylva/manage.py collectstatic --noinput --settings=sylva.test_settings | tail -n 1 -f
- python sylva/manage.py compress --settings=sylva.test_settings | tail -n 1 -f
- coverage run --source=sylva sylva/manage.py test accounts sylva.tests data engines graphs schemas reports --settings=sylva.test_settings
- node_modules/karma/bin/karma start sylva/reports/static/app/js/karma.conf.js --single-run --browsers PhantomJS
after_success:
- coveralls-lcov -v -n sylva/reports/static/app/js/coverage/*/lcov.info > coverage.json
- coveralls --merge=coverage.json
- coveralls
after_script:
- ./neo4j/bin/neo4j stop
- "sh -e /etc/init.d/xvfb stop"