forked from learningequality/ka-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.2 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
language: python
python:
- '2.6'
- '2.7'
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile
--background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
install:
- npm install
- npm install -g grunt-cli
- pip install -r requirements_test.txt
- pip install coveralls
script:
- bin/kalite start --traceback -v2
- bin/kalite status
- bin/kalite stop --traceback -v2
# Check that there are no processes remaining containing the string "kalite" after stopping
- if [ ! `ps ax | grep kalite | wc -l` -eq 1 ]; then echo "Processes remain after stop"; ps ax | grep kalite; exit 1; fi
- python python-packages/fle_utils/tests.py
# KA Lite tests with coverage
- coverage run --source=kalite --omit="kalite/testing/*,*/tests/*" bin/kalite manage test --traceback -v2
# JavaScript tests
- grunt jshint
notifications:
email:
- aron@learningequality.org
hipchat:
rooms:
secure: A4OlCFaETlLB20ATXrPmA+8F35AsjZZ9nO8dPUG9m5pAr1pD4CDiVrn/tmHbbk2rQaQLm3B8CifdNuQL6fLuEv2pJpfIdSESVqsqJcQPPpgogjvHRabOXgAmC5AWpQupe3DARIMDjOPhHaeRFN/GYjEnK8N+nqu/SQ2mPmAzOFQ=
after_success:
- coverage report
- coveralls