This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 1.64 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
# CI environment
dist: bionic
jobs:
include:
- language: node_js
node_js: 14
python: "3.7.9"
addons:
sonarcloud:
organization: "swsnu"
token:
secure: "i8qfmNiGa2QwlTEROazQ4Gx2vikSpEBPd7pSFVbjyoiuANuShmWZcdFT4RJMGPPEpJtmPauK4DR2uE9EK9JTNLI2yrQ8AF5ns9owU8TNVjaR2Oc4ZmDKSDcYoYRL2O6OFz0d6mKmxu8EjGkuLvTORaGuoopfaPKyGJQSuskl1EmLL2sDX+/xJcu0NA6t0t2ibfxbLvt08hhEhLY47Wn0Q/M/PJvKycGZkazj4LSfYLdsSy3ZRh3Jtxv4XgtfvVcQjtU47CvJQwwb3GuYztzLLSzZPiRbo6KQ/YSB5mj/OnBclWfFIyGFoUXxqB3OpAJvWJo0PGvJbUTDVCtxe9+UFikd6+LkzK2Dg1NDDGW6JBiD+96qYYhZo5QJYqgrFybBNqrs5LgSJ3uD8voHQZCuAvTsJOcvDNqF9NYQuqeCj1vFPZIxe/gBcUemDfjxLX9JClWkdlFCoHAPjz7qPBCJ8rwtkzgcn8sDzQ9UoEsV9ogM//IjvsvGvrqYlSSFtY0RI7sQqJNUxrhDLFzsncCtd1zgeanYcmz0znMVK3BpsYVeUYQyNtaFeEb/4EmDnG4d2mWk8b+7dgMTM9xLQb6CicDv6hRmR2bDOvYc+p8C5Lds9AVRtyymqsfmAvHfhpISsqTyBrEHiwoEt3qByWKR6kgNbLqYJVF3eooZa6oZxeI="
before-install:
- npm install -g yarn
install:
- source ~/virtualenv/python3.7/bin/activate
- pip install -r backend/requirements.txt
- pip install coveralls
- cd frontend
- yarn install
- yarn global add coveralls
- gem install coveralls-lcov
- cd ..
script:
- cd frontend && ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false
- coveralls-lcov -v -n coverage/lcov.info > coverage.json
- cd ../backend && pylint app
- cd app && python3 manage.py migrate
- coverage run --source='.' manage.py test
- coverage xml
- coveralls --merge=../../frontend/coverage.json
- cd ../../ && sonar-scanner