-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
63 lines (61 loc) · 2.99 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
sudo: required
notifications:
webhooks: https://coveralls.io/webhook
matrix:
include:
- language: node_js # Your language e.g. node_js, python
cache:
yarn: true
node_js:
- '10' # node_js version
dist: trusty
env:
- COVERALLS_PARALLEL=true
addons:
sonarcloud:
organization: "swsnu"
token:
secure: "noY4L8OXZLjMCVPaeUernI+gxBcC9Nh8fQbW5MN5dw1UtnJXbLnl+Br1SK6Dip8i+Z7ETSm4QTrkuPyvBSSRfUwJH4jo5cZ+ZA8+d/pKab96iQdUr4riTuEXuT4hKSdj2tdBJtVQLt7CTbGVyJP43UDwJHxDbPIh721sbT4e2DcCoA1D2H2S5OGcbjWdD4Z8av6kPpaeEybCbr22x6nPLfxC/veBul+mEbwZKciiV6NDDbYbgfrq398RMe67ZcmaJoLtOf0WvNeppI3y87o/N2JVQkVbPAz4qCQN68m7KDpU3cA28vrKVBa+xr7a7OSsHdcGwVek7H+Hte5JA8K0slfX/4SbmWTH7R8QzZMnN/LRcwKMJyzQV6icfgNGRvQtdg7z192Krb1IpiCrAKXToXTUNom/RVufqbWc5Mf6KU3sHVrbLJJx7sDXYKY9rhROpdZitdN0fhw3lH3IUByGsDHElMTr4z3aqaYv03OOiQG1R9JsURbEYl1qMb5n/JIl9qtAkFQ/c0pFYa0rEppGzsZwX9yLf8e3XnjkuZXQLmmPkYqD2ix4cksFQMJK94ZjR2hkN/K4Vljz0Z1EAOiFhnGWW/H3tt4Q0z50QB2WY3y+HMzEpLQ11qmKHZ9eT8BYmlDXwglejcC9KTTwICO/TvjM5rPLccYa/hzLY5yEQN0="
before_install: # Script to run before install
- cd frontend
install: # Script to install required packages
- yarn install
script: # Script to test your build
- ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false
after_success:
- sonar-scanner
- cat ./coverage/lcov.info | coveralls
- language: python
cache:
pip: true
python:
- '3.6'
dist: trusty
services:
- mysql
- redis-server
env:
- COVERALLS_PARALLEL=true
- TEXT_ANALYTICS_SUBSCRIPTION_KEY=secret
- TEXT_ANALYTICS_ENDPOINT=https://koreacentral.api.cognitive.microsoft.com/
addons:
sonarcloud:
organization: "swsnu"
token:
secure: "noY4L8OXZLjMCVPaeUernI+gxBcC9Nh8fQbW5MN5dw1UtnJXbLnl+Br1SK6Dip8i+Z7ETSm4QTrkuPyvBSSRfUwJH4jo5cZ+ZA8+d/pKab96iQdUr4riTuEXuT4hKSdj2tdBJtVQLt7CTbGVyJP43UDwJHxDbPIh721sbT4e2DcCoA1D2H2S5OGcbjWdD4Z8av6kPpaeEybCbr22x6nPLfxC/veBul+mEbwZKciiV6NDDbYbgfrq398RMe67ZcmaJoLtOf0WvNeppI3y87o/N2JVQkVbPAz4qCQN68m7KDpU3cA28vrKVBa+xr7a7OSsHdcGwVek7H+Hte5JA8K0slfX/4SbmWTH7R8QzZMnN/LRcwKMJyzQV6icfgNGRvQtdg7z192Krb1IpiCrAKXToXTUNom/RVufqbWc5Mf6KU3sHVrbLJJx7sDXYKY9rhROpdZitdN0fhw3lH3IUByGsDHElMTr4z3aqaYv03OOiQG1R9JsURbEYl1qMb5n/JIl9qtAkFQ/c0pFYa0rEppGzsZwX9yLf8e3XnjkuZXQLmmPkYqD2ix4cksFQMJK94ZjR2hkN/K4Vljz0Z1EAOiFhnGWW/H3tt4Q0z50QB2WY3y+HMzEpLQ11qmKHZ9eT8BYmlDXwglejcC9KTTwICO/TvjM5rPLccYa/hzLY5yEQN0="
before_install:
- mysql -e "CREATE DATABASE PapersFeed_DB;"
- mysql -e "CREATE USER 'PapersFeed'@'localhost' IDENTIFIED BY 'swpp2019team3';"
- mysql -e "GRANT ALL PRIVILEGES ON *.* to 'PapersFeed'@'localhost';"
install:
- pip install -r requirements.txt
script:
- pylint --rcfile=./backend/.pylintrc backend --disable='fixme, duplicate-code'
- cd backend
- coverage run --source='.' ./manage.py test
- coverage report --fail-under=90
- coverage xml
after_success:
- sonar-scanner
- coveralls