diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4bc6562 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +# CI Environment +dist: bionic + +# Job Configurations +jobs: + include: + - language: python + python: "3.9.6" + install: + - cd backend + - pip install -r requirements.txt + script: + - pylint **/*.py --load-plugins pylint_django + - coverage run --source='.' manage.py test + - coverage xml + + - language: node_js + node_js: 14 + install: + - cd frontend + - yarn install + script: + - ./node_modules/.bin/eslint src + - yarn test --coverage --watchAll=false diff --git a/backend/requirements.txt b/backend/requirements.txt index e399fec..8f886ad 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,4 +1,4 @@ -django==3.2.6 -coverage==5.3 -pylint==2.6.0 -pylint-django==2.3.0 +django==4.1.2 +coverage==6.5 +pylint==2.15.5 +pylint-django==2.5.3 diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index e942229..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,18 +0,0 @@ -sonar.projectKey=kdh0102_swpp2021-integration-practice -sonar.organization=kdh0102 - -# this is the name and version displayed in the SonarCloud UI. -sonar.projectName=swpp2021-integration-practice -sonar.projectVersion=1.0 - -# Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 - -sonar.sources=backend,frontend/src -sonar.tests=backend,frontend/src - -sonar.exclusions=backend/**/migrations/*,frontend/src/index.js,frontend/src/serviceWorker.js -sonar.test.inclusions=backend/**/tests.py,frontend/src/**/*.test.js - -sonar.python.coverage.reportPaths=backend/coverage.xml -sonar.javascript.lcov.reportPaths=frontend/coverage/lcov.info