-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
72 lines (70 loc) · 2.89 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
62
63
64
65
66
67
68
69
70
71
72
matrix:
include:
- language: node_js
node_js: '12'
python: '3.7'
addons:
sonarcloud:
organization: "swsnu"
token:
secure: "dXD8jIeWATIBfl30J1DtZcQyXXvSeXXka2knpRuaEl3c+PxcRoomt7XcDAhNXLVzz7B7PfaN6gP77F2r7KGwpJoZ8XxddU395OEgzI8/USYmVhaf57g0YnZixr6wPNR0EGkxPPa+JEts7LWD5q4VTAId74nQJ5us7OIfMo7iD9n5kGLICrKwG+nkviOzFg1SIuXkV72eQz10IXze6sXQf32gR58fAHh+LI2oHvrP9iaYiRMtJEL0JlxZsvnkey0LuUiuRqdqUCHRVRZJoij5RHLhTLYqIbv6yPq/KDdfDhRVCoL483JntvTNkyoCRq/JYgT5o3Hjvsp2tuNM3ay422yFU9ZJv/P82V0fL+iU15Udlh3OkdfUz3iwxsL5tUq+0Pa+sQMJHub1Z69bE9RcDGWnROqnHJyLcM0U5vZCyobFkOy/svU3RAgZWoTiAjUu+cGJlXYeSAW+vOr+gU3Js/NzBqyLW6zDXZnQyIxFOYPOwfECzVt6fiAIjxqQdExhGSGgLnt10m1rtClyozj696Z9bv4I9lDm9bwM1kSMY1c3oyW0gFc7e/wjaK4IOGTRCsVWay7C55zr+79+ZW0hX/NqNOkrrKkTc4EsJiWqiDkCMlqNYYLSY+Fve+koDA72T5PgznqfBNKp2eMokSmO6Z6V/HM/hSZ1QREkK1zEnso="
cache:
- yarn: true
- pip: true
ignore:
- ./src/serviceWorker.js
install:
- cd frontend
- yarn install
- yarn global add coveralls
- gem install coveralls-lcov
- cd ../
- cd backend/adoorback
- source ~/virtualenv/python3.7/bin/activate
- pip install -r requirements.txt
- pip install coveralls
- cd ../../
script:
- cd frontend
- ./node_modules/.bin/eslint src/
- yarn test --coverage --watchAll=false
- cd ..
- cd backend/adoorback
- pylint **/*.py --load-plugins pylint_django
- python manage.py migrate
- coverage run --source='.' manage.py test
- coverage xml
- cd ../..
- sonar-scanner
- cd frontend
- coveralls-lcov -v -n coverage/lcov.info > coverage.json
- cd ..
- cd backend/adoorback
- coveralls --merge=../../frontend/coverage.json
- cd ../..
- language: node_js
node_js: "12"
cache:
- yarn: true
before_install:
- cd frontend
install:
- yarn install
ignore:
- ./src/serviceWorker.js
script:
- ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false
- language: python
python:
- "3.7"
before_install:
- cd backend/adoorback
install:
- pip install -r requirements.txt
script:
- coverage run --source='.' --omit='./*/migrations/*','./adoorback/*','./feed/algorithms/*','./feed/cron.py','./account/cron.py','./locustfile.py','./manage.py','./*/wsgi.py','./*/asgi.py','./*/utils/*' ./manage.py test
- coverage run --source='.' --branch --omit='./*/migrations/*','./adoorback/*','./feed/algorithms/*','./feed/cron.py','./account/cron.py','./locustfile.py','./manage.py','./*/wsgi.py','./*/asgi.py','./*/utils/*' ./manage.py test
- coverage report -m
- rm -r */migrations
- pylint **/*.py --load-plugins pylint_django