forked from devlup-labs/gymkhana_portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 955 Bytes
/
.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
language: python
python:
- "3.6"
addons:
postgresql: "9.6"
dist: trusty
env:
- DJANGO_SETTINGS_MODULE=gymkhana.settings DJANGO_SECRET_KEY="q$o5mx19x9(9_^rzqf@o@s^t%t!ghix7($f9ymy49_^ryzq9x9"
git:
submodules: false
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- psql -c "CREATE DATABASE gymkhanadb;" -U postgres
- psql -c "CREATE USER gymkhanauser WITH LOGIN PASSWORD 'password';" -U postgres
- psql -c "ALTER ROLE gymkhanauser WITH CREATEDB;" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE gymkhanadb TO gymkhanauser;" -U postgres
install:
- pip3 install coveralls
- pip3 install pipenv
- pipenv install --dev
script:
- cp .env.example .env
- cd src
- source "$(pipenv --venv)"/bin/activate
- flake8 .
- python3 manage.py makemigrations
- python3 manage.py migrate
- coverage run manage.py test
#after_success:
# - coveralls