-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (50 loc) · 2.41 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
# CI Environment
dist: bionic
# Job Configurations
jobs:
include:
- language: node_js
node_js: 14
python: "3.9.6"
addons:
sonarcloud:
organization: "swsnu"
token:
secure: "UkxNu9/eOefonMeuwLz1j1TdlJC1y/+/B7cFD2hLwoM4GfSp5ed/Nd/KUeBL9II4es1CZvC+bW2M6ugo/yoPNqBjulWB1KHUFlz2wh9vzrxYiDCGsBbDzVN7h+NZp7jq0DwngK1h+v/uVyAuil2ruOlSb3mlcAgfg2nmyC1PjPkgzXufU3b7XW4RPgSWsINomDoDhFbrNzOQxTEXiF57vwAggpMnS2C/my2OQJMxQJeonflF9jbm/5MsVz9caInfeh5cz6OvJ6BBTz7nzu2a7X/KCnGKZ/zdR8hRmAWDax2Bkpim24uymeu8yfcGpE5EUD792HWDjwaphDOgwLO1OevdiHEuuT9g2ehljTY6Fv8DAnUqob7JhuTFQE0HZSfXgsqihutWzpfIUOuZxmKvspYBRCM6FO4yJk+jUhvik08H+Jzme6AWFxlz48l9/gUZBouR0weEwUOVZV8MnvBXO/ZtPEtnTVCukm2R5+KS4XI6NEt71Q0v0yd3SBnKXBXnOMG7XDLPKxolou4Mrwza5j2+oa4hQJsD+xQk1Wl/LG8eifrS8ikCssfPGnyk9msZkRzbVbpGHWeW/7LKF/n4ithBHHNmKuiNBJCIjaDGH/Xsg5N0O0yjje+XzUf08dI9jm/QTIDhfmBevKd3m81ecwCKz3VUoIYnFf7p3+bkmho="
install:
- curl -sSf --retry 5 -o python-3.9.6.tar.bz2 https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/18.04/x86_64/python-3.9.6.tar.bz2
- sudo tar xjf python-3.9.6.tar.bz2 --directory /
- source ~/virtualenv/python3.9.6/bin/activate
- python --version
- pip --version
- pip install -r backend/cu/requirements.txt
- pip install coveralls
- pip install black
- python -m pip install Pillow
- python -m pip install django-cors-headers
- pip install djangorestframework
- pip install djangorestframework-simplejwt
- yarn global add coveralls
- gem install coveralls-lcov
- sudo apt-get update
- sudo apt-get install mysql-server
- sudo apt-get install libmysqlclient-dev
- sudo pip install mysqlclient
- sudo pip install pymysql
- sudo service mysql start
- cd frontend
- cd cu
- yarn install
- yarn add redux react-redux @reduxjs/toolkit
- yarn add @nivo/core @nivo/pie
- yarn add react-select
script:
- ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false
- coveralls-lcov -v -n coverage/lcov.info > coverage.json
- cd ../../backend/cu
- black ./
- coverage run --source='.' manage.py test
- coverage xml
- cd ../.. && sonar-scanner
- cd backend/cu && coveralls --merge=../../frontend/cu/coverage.json