-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
55 lines (46 loc) · 1.36 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
language: python
dist: xenial
sudo: required
python:
- "2.7.14"
#services:
# - postgresql
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-dev
# - python-psycopg2
- apache2
- apache2-dev
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# - sudo apt-get update && sudo apt install libpq5 libpq-dev python-dev python-psycopg2 apache2
install:
- pip install -r requirements.txt
- pip install coveralls
- mkdir simon-web/logs
- touch simon-web/logs/debug.log
before_script:
- mv simon-web/simon_project/passwords_dummy.py simon-web/simon_project/passwords.py
- psql -c 'create database simon;' -U postgres
- python simon-web/manage.py makemigrations
- python simon-web/manage.py migrate
- npm install -g karma
- npm install -g requirejs
- npm install -g jasmine-core karma-jasmine
- npm install -g karma-requirejs
- npm install -g karma-chrome-launcher
- npm install -g karma-browserstack-launcher
script:
- python simon-web/manage.py test
- coverage run simon-web/manage.py test
- karma start simon-javascript/karma.conf.js --single-run
after_success: coveralls
notifications:
slack: lacnic-eng:jSDKPP0pyOgA5JV4lsQTGtuP