-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (50 loc) · 1.23 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
sudo: required
matrix:
include:
- language: python
python: 3.6
cache:
pip: true
services:
- redis-server
install:
- pip install django coverage coveralls
- pip install -U channels
- pip install -U asgi_redis
before_script:
- cd backend
- python3 manage.py migrate
script:
- coverage run --branch --source="./example" 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
script:
- ng test --code-coverage --watch false
- ng e2e
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
after_script:
- cd ..