tacticalrmm/.travis.yml

28 lines
566 B
YAML
Raw Normal View History

2019-10-22 22:55:14 +00:00
dist: xenial
2019-10-22 22:22:36 +00:00
language: python
python:
2019-10-22 22:41:17 +00:00
- "3.6"
2019-10-22 22:22:36 +00:00
- "3.7"
2019-10-22 22:41:17 +00:00
- "3.8"
2019-10-22 22:22:36 +00:00
services:
- postgresql
before_script:
- psql -c 'CREATE DATABASE travisci;' -U postgres
- psql -c "CREATE USER travisci WITH PASSWORD 'travisSuperSekret6645';" -U postgres
- psql -c 'GRANT ALL PRIVILEGES ON DATABASE travisci TO travisci;' -U postgres
- psql -c 'ALTER USER travisci CREATEDB;' -U postgres
before_install:
- cd api/djangormm
install:
- pip install --upgrade pip
- pip install -r requirements.txt
script:
- python manage.py migrate
- python manage.py test