diff --git a/.travis.yml b/.travis.yml index b72f88a6e0..08dce055f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,17 +5,21 @@ services: addons: postgresql: "9.4" before_script: + - cp decide/local_settings.travis.py decide/local_settings.py - psql -U postgres -c "create user decide password 'decide'" - psql -U postgres -c "create database test_decide owner decide" - psql -U postgres -c "ALTER USER decide CREATEDB" language: python python: + - "2.7" - "3.6" install: - pip install -r requirements.txt - pip install codacy-coverage + - pip install flake8 script: - cd decide - coverage run --branch --source=. ./manage.py test --keepdb --with-xunit - coverage xml - python-codacy-coverage -r coverage.xml + diff --git a/README.md b/README.md index 83d0a57e27..94d65f4e7c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -[![Build Status](https://travis-ci.com/wadobo/decide.svg?branch=master)](https://travis-ci.com/wadobo/decide) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/94a85eaa0e974c71af6899ea3b0d27e0)](https://www.codacy.com/app/Wadobo/decide?utm_source=github.com&utm_medium=referral&utm_content=wadobo/decide&utm_campaign=Badge_Grade) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/94a85eaa0e974c71af6899ea3b0d27e0)](https://www.codacy.com/app/Wadobo/decide?utm_source=github.com&utm_medium=referral&utm_content=wadobo/decide&utm_campaign=Badge_Coverage) +[![Build Status](https://travis-ci.org/AndresJRamirez/decide.svg?branch=master)](https://travis-ci.org/AndresJRamirez/decide) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6f738bc832d84dbda8caf4dc772bd244)](https://www.codacy.com/manual/AndresJRamirez/decide?utm_source=github.com&utm_medium=referral&utm_content=AndresJRamirez/decide&utm_campaign=Badge_Grade) +[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/6f738bc832d84dbda8caf4dc772bd244)](https://www.codacy.com/manual/AndresJRamirez/decide?utm_source=github.com&utm_medium=referral&utm_content=AndresJRamirez/decide&utm_campaign=Badge_Coverage) + +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/94a85eaa0e974c71af6899ea3b0d27e0)](https://www.codacy.com/app/Wadobo/decide?utm_source=github.com&utm_medium=referral&utm_content=wadobo/decide&utm_campaign=Badge_Grade) +[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/94a85eaa0e974c71af6899ea3b0d27e0)](https://www.codacy.com/app/Wadobo/decide?utm_source=github.com&utm_medium=referral&utm_content=wadobo/decide&utm_campaign=Badge_Coverage) Plataforma voto electrónico educativa ===================================== diff --git a/decide/local_settings.travis.py b/decide/local_settings.travis.py new file mode 100644 index 0000000000..d4162dae92 --- /dev/null +++ b/decide/local_settings.travis.py @@ -0,0 +1,41 @@ +ALLOWED_HOSTS = ["*"] + +# Modules in use, commented modules that you won't use +MODULES = [ + 'authentication', + 'base', + 'booth', + 'census', + 'mixnet', + 'postproc', + 'store', + 'visualizer', + 'voting', +] + +APIS = { + 'authentication': 'http://localhost:8000', + 'base': 'http://localhost:8000', + 'booth': 'http://localhost:8000', + 'census': 'http://localhost:8000', + 'mixnet': 'http://localhost:8000', + 'postproc': 'http://localhost:8000', + 'store': 'http://localhost:8000', + 'visualizer': 'http://localhost:8000', + 'voting': 'http://localhost:8000', +} + +BASEURL = 'http://localhost:8000' + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'postgres', + 'USER': 'postgres', + 'HOST': 'localhost', + 'PORT': '5432', + } +} + +# number of bits for the key, all auths should use the same number of bits +KEYBITS = 256 diff --git a/test b/test new file mode 100644 index 0000000000..63ccd5a14c --- /dev/null +++ b/test @@ -0,0 +1 @@ +its a test