forked from swsnu/swpp2021-team13
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (42 loc) · 1.9 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
# CI Environment
dist: focal
env:
- PROBLOOM_SECRET_KEY: '''django-insecure-1(%62=%6cx5iecishlhd+(*^c@decmumpx+x_e%wt*9b-63ye1'''
# Job Configurations
jobs:
include:
- language: node_js
node_js: 16
python: "3.8"
cache:
yarn: true
directories:
- ~/.cache/pypoetry
addons:
sonarcloud:
organization: swsnu
token:
secure: "mq5DOcKE05zxrKfH8maatDopeRCGIogiKX58MXaRfKWw7kiBkggI/jpCCwzAoTpsR70YoBLDWfpXvAqSX9cNcZb18fJ3umn/dx82/zcLJGZrTgXsMlXS+N0AOSO/FvLoklAferhyJK1hbSl/lHQ/muwOrxgjn1RI66HX7S6W+QqPPmiFOv6zS4xb+HeLYAgB0L+EM8z41ZizrgpvFUsGpk3f6VtozeGoeHXweMUSFnbBwIL5DNNVBD8baXQTAaibxn5MrW2L5/ddRNCvY2aRZsMm3a3H4ffut4ayfIThHnnBUFcmMenogOPzTDvFkWMNsX69SIP+rNLgTSb6wRyFDygvU1Yf23poFUQcFuyxGPnvgHkERAqbA7p7hZj5Ru8b0LyJoJQNhHvsSGPeSL3y3aTrswhkOEStyCiX4k9HPJ7uwQ4JMoHWp0TiC4h1Cm0WBtZEMar9EJGZHFTKXY6XEo17BU4Q3HlPiQbwk10ucQd1BnQw1tMnFSlbRT86BT4d40x2xgNxzMi4kRzlNWkwERjCNDbtM/d8OwH2psmuZR11tS5YT+7xc8ZxEPHwZcXN0pCLVs51lnRtWvEUJPgFk1qO+rNIFkzKMy1TX7IELvxx0mZXRd0s4Zv5vjsQH0choQUmVqGJuUdhzm2O8BXr69HcH7QPlRUwPQkFQ0U8fsY="
before_install:
- source ~/virtualenv/python3.8/bin/activate
- pip install poetry
- poetry --version
install:
- pip install coveralls
- yarn global add coveralls
- gem install coveralls-lcov
script:
- cd frontend/probloom
- yarn install --frozen-lockfile
- ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false
- coveralls-lcov -v -n coverage/lcov.info > coverage.json
- cd ../../backend/probloom
- poetry install --no-ansi
- poetry run pylint -E **/*.py --load-plugins pylint_django
- poetry run coverage run
- poetry run coverage xml
- cd ../..
- sonar-scanner
- cd backend/probloom
- coveralls --merge=../../frontend/probloom/coverage.json