testing node in travis #2

This commit is contained in:
wh1te909 2019-12-16 01:24:07 +00:00
parent e4a1465707
commit 8c78bec921
1 changed files with 19 additions and 21 deletions

View File

@ -1,12 +1,4 @@
dist: xenial dist: xenial
language: python
python:
- "3.7"
- "3.8"
services:
- postgresql
jobs: jobs:
include: include:
@ -19,19 +11,25 @@ jobs:
script: script:
- npm install meshcentral - npm install meshcentral
before_script: - language: python
services:
- postgresql
python:
- "3.7"
- "3.8"
before_script:
- psql -c 'CREATE DATABASE travisci;' -U postgres - psql -c 'CREATE DATABASE travisci;' -U postgres
- psql -c "CREATE USER travisci WITH PASSWORD 'travisSuperSekret6645';" -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 'GRANT ALL PRIVILEGES ON DATABASE travisci TO travisci;' -U postgres
- psql -c 'ALTER USER travisci CREATEDB;' -U postgres - psql -c 'ALTER USER travisci CREATEDB;' -U postgres
before_install: before_install:
- cd api/tacticalrmm - cd api/tacticalrmm
install: install:
- pip install --upgrade pip - pip install --upgrade pip
- pip install -r requirements-test.txt - pip install -r requirements-test.txt
script: script:
- python manage.py migrate
- python manage.py test -v 2 - python manage.py test -v 2