-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
35 lines (35 loc) · 1.61 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
dist: bionic
jobs:
include:
- name: main branch test
if: branch = main
language: python
python: "3.9.6"
node_js: 14
addons:
sonarcloud:
organization: swsnu
token:
secure: rz3xXiPIs1YwTYdIafMz5M3mMtcXz6hPLQYKQi1sj8sFWVRqGtbhXvVNUCXj2yD+vTS5KvnL1elKlDv+DdyAwxr8ezcZJxPRCLiQcN/RqE7bO2wuGGRRfY7G6l4q//zSuJ8O2Og8nm9sKderFxWk6qE8kZVRJEZ8ar05bQVjDpayjVDl4jM9SEl1LsXnQ0VlMvBMfM3YAgYWiZ3MgN/9jnckgFLmdtmEWsc4+ZaLxJ91WxprzkZeuoNMP7J77Vl0QbVSjIjqaLOdjtBxkX1nS5VMsW04W1pUyGJdxyfgFMXrGLUP3wuAbRZ1ThNTGMg6GoZOAjndGVhEMcBYPxOKu8cJ8WEQBqfC5L9M0vaYN8lfn9i33DKpDuEnfqO2QJh3T7hZVCRbzV+t4kQ1Nyr0N6MVrKDpR8pbZFccFD9MJKCIGqiAwBZmMcMZTRi2vnAwwbCKv3WJrCMOa35D6em59gSd0qwdoRFrBTb7RwGOWfLQ+MseT/BO0xNQq1zlfVMMBWJUlCvjxrhm8qen9oaaeufr4rZgix8gVmTUtkiSEcPOlbr5Ip7HBnn9OCVDIUmDukcU61KsKDitbYZThOna1DKRCOyTSDUH1wAaUztXYjzOtxNGkXlpycHGC54YBAp7s71QsS/c+jAgRjjZfZ7+RIBnPx9dw5ftx1C/3SXi1Tk=
install:
- cd backend
- pip install -r requirements.txt
- pip install coveralls
- cd ../frontend/sprint
- yarn install
- yarn global add coveralls
- gem install coveralls-lcov
- cd ../..
script:
- cd frontend/sprint
- ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false
- coveralls-lcov -v -n coverage/lcov.info > ../coverage.json
- cd ../..
- cd backend/sprint
- pylint **/*.py --load-plugins pylint_django
- coverage run --source='.' --omit='manage.py','*/wsgi.py','*/asgi.py','*/__init__.py','*/admin.py','run.py' manage.py test --keepdb
- coverage xml
- coveralls --merge=../../frontend/coverage.json
- cd ../..
- sonar-scanner