-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (45 loc) · 1.24 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
sudo: required
matrix:
include:
- language: python
python: "3.6"
cache:
pip: true
install:
- pip3 install django coverage coveralls
before_script:
- cd PlaskBack
- python3 manage.py migrate
script:
- coverage run --branch --source="./ask" manage.py test ask
- coverage run --branch --source="./location" manage.py test location
- coverage run --branch --source="./user" manage.py test user
after_success: coveralls
- language: node_js
node_js: 8.8
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
npm: true
directories:
- PlaskFront/node_modules
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- cd PlaskFront
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 ..