-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (37 loc) · 1.05 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
language: python
dist: xenial
sudo: required
python:
- "2.7.14"
addons:
# code_climate:
# repo_token: f7fa84853f7688638c4692deda36f9c85b4c4099fd42da5a6e7097c2f29cd651
postgresql: "9.5"
apt:
packages:
- libpq5=9.5.13-0ubuntu0.16.04
- libpq-dev=9.5.13-0ubuntu0.16.04
- python-psycopg2
- apache2
- apache2-dev
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- pip install -r requirements.txt
- pip install coveralls
before_script:
- psql -c 'create database monitor;' -U postgres
- python monitor/manage.py makemigrations
- python monitor/manage.py migrate
- python monitor/manage.py makemigrations app
- python monitor/manage.py migrate app
- npm install karma
- npm install karma-browserstack-launcher --save-dev
script:
- python monitor/manage.py test
- coverage run monitor/manage.py test
# - simon-javascript/node_modules/karma/bin/karma start simon-javascript/my.conf.js --single-run
after_success: coveralls
notifications:
slack: lacnic-eng:jSDKPP0pyOgA5JV4lsQTGtuP