-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (59 loc) · 1.74 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
sudo: required
matrix:
include:
- language: python
python: 3.6
services:
- redis-server
cache:
pip: true
install:
- pip install django coverage coveralls
- pip install -U channels
- pip install -U asgi_redis
- pip install -U django-redis
- pip install django_extensions
- pip install psycopg2
before_script:
- psql -c "create user busymanager with password 'busymanager';" -U postgres
- psql -c 'create database busydb owner busymanager;' -U postgres
- psql -c 'grant all privileges on database busydb to busymanager;' -U postgres
- psql -c 'alter user busymanager createdb;' -U postgres
- cd backend
- python3 manage.py migrate
script:
- coverage run --branch --source="./busyback" manage.py test
after_success:
- coveralls
after_script:
- cd ..
- language: node_js
node_js: 8.8
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
npm: true
directories:
- frontend/node_modules
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- cd frontend
install:
- npm install
- npm install coveralls
- npm install -g @angular/cli
- npm install -S angular2-websocket-service
- npm install -S queueing-subject
script:
- ng test --code-coverage --watch false
- ng e2e
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
after_script:
- cd ..